From: Guido van Rossum Date: Tue, 9 Dec 1997 19:39:12 +0000 (+0000) Subject: Fix the way the version number is gotten out of the RCS revision. X-Git-Tag: v1.5b2~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba179051aadd7ea81ad698faa2514d00dfd03ab5;p=thirdparty%2FPython%2Fcpython.git Fix the way the version number is gotten out of the RCS revision. --- diff --git a/Demo/scripts/newslist.py b/Demo/scripts/newslist.py index 2aa2b18bc624..59ffde439fdf 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