Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/mwlib/_version.py
diff options
context:
space:
mode:
Diffstat (limited to 'mwlib/_version.py')
-rw-r--r--mwlib/_version.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/mwlib/_version.py b/mwlib/_version.py
new file mode 100644
index 0000000..9e73d4f
--- /dev/null
+++ b/mwlib/_version.py
@@ -0,0 +1,9 @@
+class _Version(tuple):
+ """internal version object, subclass of C{tuple},
+ but implements a fancier __str__ representation
+ """
+ def __str__(self):
+ return '.'.join([str(x) for x in self])
+
+version = _Version((0,6,1))
+del _Version