Permalink
Browse files

Updated the version generating to be more specific and format nicely.

git-svn-id: https://django-notification.googlecode.com/svn/trunk@131 590c3fc9-4838-0410-bb95-17a0c9b37ca9
  • Loading branch information...
1 parent 4947bdf commit ac6e2fde61ccb698923ceb2bd5d23f301262a8ad brosner committed Jan 4, 2009
Showing with 6 additions and 2 deletions.
  1. +6 −2 notification/__init__.py
View
@@ -1,2 +1,6 @@
-VERSION = (0, 1, 'pre')
-__version__ = '.'.join(map(str, VERSION))
+VERSION = (0, 1, 0, "pre")
+
+def get_version():
+ return "%s.%s.%s%s" % (VERSION[0], VERSION[1], VERSION[2], VERSION[3])
+
+__version__ = get_version()

0 comments on commit ac6e2fd

Please sign in to comment.