Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

        def get_version(short=False):
    assert __version_info__['releaselevel'] in ('alpha', 'beta', 'final')
    vers = ["%(major)i.%(minor)i" % __version_info__, ]
    if __version_info__['micro']:
        vers.append(".%(micro)i" % __version_info__)
    if __version_info__['releaselevel'] != 'final' and not short:
        vers.append('%s%i' % (__version_info__['releaselevel'][0], __version_info__['serial']))
    return ''.join(vers)
        


src/d/j/django-admintheme-0.2/doc_src/conf.py   django-admintheme(Download)
#
# The short X.Y version.
version = admintheme.get_version(short=True)
# The full version, including alpha/beta/rc tags.
release = admintheme.get_version()

src/d/j/django-admintheme-HEAD/doc_src/conf.py   django-admintheme(Download)
#
# The short X.Y version.
version = admintheme.get_version(short=True)
# The full version, including alpha/beta/rc tags.
release = admintheme.get_version()