Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Modified the version generation to ignore the final designation.

git-svn-id: http://django-notification.googlecode.com/svn/trunk@134 590c3fc9-4838-0410-bb95-17a0c9b37ca9
  • Loading branch information...
commit db70d12b4a0aec8ef435c5253049382e010f3121 1 parent 744fbc1
@brosner brosner authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 notification/__init__.py
View
5 notification/__init__.py
@@ -1,6 +1,9 @@
VERSION = (0, 1, 0, "pre")
def get_version():
- return "%s.%s.%s%s" % (VERSION[0], VERSION[1], VERSION[2], VERSION[3])
+ if VERSION[3] != "final":
+ return "%s.%s.%s%s" % (VERSION[0], VERSION[1], VERSION[2], VERSION[3])
+ else:
+ return "%s.%s.%s" % (VERSION[0], VERSION[1], VERSION[2])
__version__ = get_version()
Please sign in to comment.
Something went wrong with that request. Please try again.