swift/swift/__init__.py
John Dickinson a69bc08990 1.7.6 version bump
Change-Id: Ifc29d286a3e435fd16c1dec8b5afb7b331a89b77
2012-11-06 19:38:26 -08:00

22 lines
500 B
Python

import gettext
class Version(object):
def __init__(self, canonical_version, final):
self.canonical_version = canonical_version
self.final = final
@property
def pretty_version(self):
if self.final:
return self.canonical_version
else:
return '%s-dev' % (self.canonical_version,)
_version = Version('1.7.6', False)
__version__ = _version.pretty_version
__canonical_version__ = _version.canonical_version
gettext.install('swift')