Part of twisted.python.versions View Source View In Hierarchy
If running from an svn checkout, include the revision number in the version string.
Method | __init__ | No summary |
Method | short | Return a string in canonical short version format, <major>.<minor>.<micro>[+rSVNVer]. |
Method | base | Like short ,
but without the +rSVNVer. |
Method | __repr__ | Undocumented |
Method | __str__ | Undocumented |
Method | __cmp__ | Compare two versions, considering major versions, minor versions, micro versions, then prereleases. |
Method | _parseSVNEntries_4 | No summary |
Method | _parseSVNEntries_8 | Given a readable file object which represents a .svn/entries file in format version 8, return the revision as a string. |
Method | _getSVNVersion | No summary |
Method | _formatSVNVersion | Undocumented |
Parameters | package | Name of the package that this is a version of. (type: str ) |
major | The major version number. (type: int ) | |
minor | The minor version number. (type: int ) | |
micro | The micro version number. (type: int ) | |
prerelease | The prerelease number. (type: int ) |
A version with a prerelease is always less than a version without a prerelease. If both versions have prereleases, they will be included in the comparison.
Parameters | other | Another version. (type: Version ) |
Returns | NotImplemented when the other object is not a Version, or one of -1, 0, or 1. | |
Raises | IncomparableVersions | when the package names of the versions differ. |
Returns | None or string containing SVN Revision number. |