Class t.p.v.Version(object):

Part of twisted.python.versions View Source View In Hierarchy

An object that represents a three-part version number.

If running from an svn checkout, include the revision number in the version string.
Method __init__ Undocumented
Method short Return a string in canonical short version format,
Method base Like short, but without the +rSVNVer.
Method __repr__ Undocumented
Method __str__ Undocumented
Method __cmp__ Undocumented
Method _parseSVNEntries Given a readable file object which represents a .svn/entries
Method _getSVNVersion Figure out the SVN revision number based on the existance of
Method _formatSVNVersion Undocumented
def __init__(self, package, major, minor, micro): (source)
Undocumented
def short(self): (source)
Return a string in canonical short version format, <major>.<minor>.<micro>[+rSVNVer].
def base(self): (source)
Like short, but without the +rSVNVer.
def __repr__(self): (source)
Undocumented
def __str__(self): (source)
Undocumented
def __cmp__(self, other): (source)
Undocumented
def _parseSVNEntries(self, entriesFile): (source)
Given a readable file object which represents a .svn/entries file, return the revision as a string. If the file cannot be parsed, return the string "Unknown".
def _getSVNVersion(self): (source)
Figure out the SVN revision number based on the existance of twisted/.svn/entries, and its contents. This requires parsing the entries file and reading the first XML tag in the xml document that has a revision="" attribute.
ReturnsNone or string containing SVN Revision number.
def _formatSVNVersion(self): (source)
Undocumented
API Documentation for twisted, generated by pydoctor.