Fix $Revision$ processing so it doesn't get eaten by CVS!

This commit is contained in:
Ka-Ping Yee 2001-02-27 22:46:01 +00:00
parent 09d7d9a552
commit 40c49919fb
1 changed files with 2 additions and 2 deletions

View File

@ -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__)))