File: __init__.py

package info (click to toggle)
python-django-adminsortable 2.0.10-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 536 kB
  • sloc: python: 501; sh: 24; makefile: 3
file content (17 lines) | stat: -rw-r--r-- 378 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
VERSION = (2, 0, 10)
DEV_N = None


def get_version():
    version = '{0}.{1}'.format(VERSION[0], VERSION[1])
    if VERSION[2]:
        version = '{0}.{1}'.format(version, VERSION[2])
    try:
        if VERSION[3]:
            version = '{0}.{1}'.format(version, VERSION[3])
    except IndexError:
        pass
    return version


__version__ = get_version()