Trees | Indices | Help |
|
---|
|
Version utilities.
|
|||
|
|||
|
|||
tuple or None |
|
||
string or None |
|
||
bool |
|
||
bool |
|
|
|||
_FULL_VERSION_RE = re.compile(r"(\d+)\.(\d+)\.(\d+)")
|
|||
_SHORT_VERSION_RE = re.compile(r"(\d+)\.(\d+)")
|
|||
FIRST_UPGRADE_VERSION = 2, 10, 0
|
|||
CURRENT_VERSION = constants.VERSION_MAJOR, constants.VERSION_M
|
Imports: re, constants
|
Calculates int version number from major, minor and revision numbers. Returns: int representing version number |
Splits version number stored in an int. Returns: tuple; (major, minor, revision) |
Parses a version string.
|
Verify whether a version is within the range of automatic upgrades.
|
Decide whether cfgupgrade --downgrade should be called. Given the current version and the version to change to, decide if in the transition process cfgupgrade --downgrade should be called
|
Decide whether configuration version is compatible with the target.
|
|
CURRENT_VERSION
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jan 7 16:23:26 2016 | http://epydoc.sourceforge.net |