summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorKa-Ping Yee <ping@zesty.ca>2001-02-27 22:46:01 (GMT)
committerKa-Ping Yee <ping@zesty.ca>2001-02-27 22:46:01 (GMT)
commit40c49919fb7385d4b7e2e2647be157873f75ab26 (patch)
tree2d36563076f7cf2f3f0e6be7c8c6c0cd1fea0b1e /Lib
parent09d7d9a552d0eccc3351ea1f55550218145c82ca (diff)
downloadcpython-40c49919fb7385d4b7e2e2647be157873f75ab26.zip
cpython-40c49919fb7385d4b7e2e2647be157873f75ab26.tar.gz
cpython-40c49919fb7385d4b7e2e2647be157873f75ab26.tar.bz2
Fix $Revision$ processing so it doesn't get eaten by CVS!
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/pydoc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index d2c0d10..350663b 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -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__)))