mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix $Revision$ processing so it doesn't get eaten by CVS!
This commit is contained in:
parent
09d7d9a552
commit
40c49919fb
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue