summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIsis Lovecruft <isis@torproject.org>2013-02-16 22:54:53 +0000
committerIsis Lovecruft <isis@torproject.org>2013-02-16 22:54:53 +0000
commit73d33d4caac1cd5e0be63584f72de92742a2c91a (patch)
treeab42812b1d950e5afed2db633726d9663ea044fb /src
parentb32d659b85901a8e04c6c921928483fda3b3e6e0 (diff)
Cleaned up version tracking and printing.
Diffstat (limited to 'src')
-rw-r--r--src/leap/__init__.py29
1 files changed, 8 insertions, 21 deletions
diff --git a/src/leap/__init__.py b/src/leap/__init__.py
index 8846fbc..8b30f3d 100644
--- a/src/leap/__init__.py
+++ b/src/leap/__init__.py
@@ -1,25 +1,12 @@
# -*- encoding: utf-8 -*-
+"""
+leap/__init__.py
+----------------
+Module intialization file for leap.
+"""
-__all__ = ['mx']
-__author__ = version.authors
-__version__ = version.getVersion()
-
-from leap import mx
-from leap.mx import util
from leap.mx.util import version
-
-def _print_authors_nicely():
- if hasattr(version, 'authors'):
- assert isinstance(version.authors, list)
- if len(version.authors) > 0:
- first = version.authors.pop()
- __author__ = (" ".join(first[:2]))
- if len(version.authors) > 0:
- for auth in version.authors:
- joined = " ".join(auth[:2])
- __author__ += ("\n%s" % joined)
-
-
-print "Version: %s" % version.getVersion()
-print "Authors: %s" % _print_authors_nicely()
+__all__ = ['mx']
+__author__ = version.getAuthors()
+__version__ = version.getVersion()