summaryrefslogtreecommitdiffstats
path: root/Demo/scripts/newslist.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-09 19:39:12 (GMT)
committerGuido van Rossum <guido@python.org>1997-12-09 19:39:12 (GMT)
commitba179051aadd7ea81ad698faa2514d00dfd03ab5 (patch)
tree87574f153ea4189f919c9d5f73a1e65603c74676 /Demo/scripts/newslist.py
parent1a24bb53d562444fad22880a3606ed91c4f66057 (diff)
downloadcpython-ba179051aadd7ea81ad698faa2514d00dfd03ab5.zip
cpython-ba179051aadd7ea81ad698faa2514d00dfd03ab5.tar.gz
cpython-ba179051aadd7ea81ad698faa2514d00dfd03ab5.tar.bz2
Fix the way the version number is gotten out of the RCS revision.
Diffstat (limited to 'Demo/scripts/newslist.py')
-rwxr-xr-xDemo/scripts/newslist.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Demo/scripts/newslist.py b/Demo/scripts/newslist.py
index 2aa2b18..59ffde4 100755
--- a/Demo/scripts/newslist.py
+++ b/Demo/scripts/newslist.py
@@ -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