diff options
author | Isis Lovecruft <isis@torproject.org> | 2013-02-16 22:57:08 +0000 |
---|---|---|
committer | Isis Lovecruft <isis@torproject.org> | 2013-02-16 23:01:49 +0000 |
commit | 0ceaf9ac207e4d0716c0aa9c6bb4b5871d8d7292 (patch) | |
tree | eb70f6edc8ed5a1d2927b0704380e661f3980ff5 /src/leap/mx/util/__init__.py | |
parent | 73d33d4caac1cd5e0be63584f72de92742a2c91a (diff) |
Cleaned up versioning to have more easily parsable public methods.
* Changed most of version.py to be in class Version, without importing any
twisted code (so that runner.CheckRequirements can check for it first) and
so that leap/mx/util/__init__.py can do:
import version
version = version.Version()
to expost only the public methods.
* Moved client detection platform code to leap/mx/util/config.py.
Diffstat (limited to 'src/leap/mx/util/__init__.py')
-rw-r--r-- | src/leap/mx/util/__init__.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/leap/mx/util/__init__.py b/src/leap/mx/util/__init__.py index c8448b0..c4a93b8 100644 --- a/src/leap/mx/util/__init__.py +++ b/src/leap/mx/util/__init__.py @@ -1 +1,12 @@ -__all__ = ['config', 'exceptions', 'log', 'net', 'version, storage'] +#-*- encoding: utf-8 -*- +""" +leap/mx/util/__init__.py +------------------------ +Module intialization file for leap.mx.util. +""" + +import version +version = version.Version() + +__all__ = ['config', 'log', 'net', 'storage', 'version'] + |