Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

        def get_version(short=False):
    version = "%s.%s" % (VERSION[0], VERSION[1])
    if short:
        return version
    if VERSION[2]:
        version = "%s.%s" % (version, VERSION[2])
    if VERSION[3] != "f":
        version = "%s%s%s" % (version, VERSION[3], VERSION[4])
    return version

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