mirror of
https://github.com/python/cpython.git
synced 2024-11-27 11:55:13 +08:00
Fix $Revision$ processing so it doesn't get eaten by CVS!
This commit is contained in:
parent
09d7d9a552
commit
40c49919fb
@ -392,8 +392,8 @@ class HTMLDoc(Doc):
|
||||
info = []
|
||||
if hasattr(object, '__version__'):
|
||||
version = str(object.__version__)
|
||||
if version[:11] == '$Revision$':
|
||||
version = version[11:-1]
|
||||
if version[:11] == '$' + 'Revision: ' and version[-1:] == '$':
|
||||
version = strip(version[11:-1])
|
||||
info.append('version: %s' % self.escape(version))
|
||||
if hasattr(object, '__date__'):
|
||||
info.append(self.escape(str(object.__date__)))
|
||||
|
Loading…
Reference in New Issue
Block a user