summaryrefslogtreecommitdiff
path: root/Demo/scripts
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-09 19:39:12 +0000
committerGuido van Rossum <guido@python.org>1997-12-09 19:39:12 +0000
commitd7e86bf14861cc0472706b15db8c4fca9bb59a2b (patch)
tree00ceb7fc7b6e537706526867bfae2a72dde65dda /Demo/scripts
parentb786112502f785ac05de7c86385a0fd5ae7a4267 (diff)
downloadcpython-d7e86bf14861cc0472706b15db8c4fca9bb59a2b.tar.gz
Fix the way the version number is gotten out of the RCS revision.
Diffstat (limited to 'Demo/scripts')
-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 2aa2b18bc6..59ffde439f 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