1. Jakub Zalewski
  2. django-online-status

Commits

ceshine  committed fbad97f

Fix 'index out of bound' issue

  • Participants
  • Parent commits 7429639
  • Branches default

Comments (0)

Files changed (1)

File online_status/__init__.py

View file
     version = '%s.%s' % (VERSION[0], VERSION[1])
     if VERSION[2]:
         version = '%s.%s' % (version, VERSION[2])
-    if VERSION[3:] == ('alpha', 0):
-        version = '%s pre-alpha' % version
-    else:
-        if VERSION[3] != 'final':
-            version = "%s %s" % (version, VERSION[3])
-            if VERSION[4] != 0:
-                version = '%s %s' % (version, VERSION[4])
     return version