Commit e394d123 authored by Ka-Ping Yee's avatar Ka-Ping Yee

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

parent 6593db39
......@@ -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__)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment