summaryrefslogtreecommitdiff
path: root/swift/__init__.py
blob: ba9e3438140f477f6e8f18a1f8f38456f4ae6c80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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.4.8', True)
__version__ = _version.pretty_version
__canonical_version__ = _version.canonical_version

gettext.install('swift')