Skip to content

Commit

Permalink
Fix $Revision$ processing so it doesn't get eaten by CVS!
Browse files Browse the repository at this point in the history
  • Loading branch information
zestyping committed Feb 27, 2001
1 parent 09d7d9a commit 40c4991
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/pydoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ def docmodule(self, object):
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__)))
Expand Down

0 comments on commit 40c4991

Please sign in to comment.