]> granicus.if.org Git - python/commitdiff
Fix the way the version number is gotten out of the RCS revision.
authorGuido van Rossum <guido@python.org>
Tue, 9 Dec 1997 19:39:12 +0000 (19:39 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 9 Dec 1997 19:39:12 +0000 (19:39 +0000)
Demo/scripts/newslist.py

index 2aa2b18bc624f5d5e965d94a3079c3ca15a1e684..59ffde439fdfd6a0233d35affd8e11b2e828b518 100755 (executable)
@@ -105,7 +105,8 @@ for dir in os.curdir, os.environ['HOME']:
 from nntplib import NNTP
 from stat import *
 
-rcsrev = '$Revision$'[11:15]
+rcsrev = '$Revision$'
+rcsrev = string.join(filter(lambda s: '$' not in s, string.split(rcsrev)))
 desc = {}
 
 # Make (possibly) relative filenames into absolute ones