Skip to content

Commit d518124

Browse files
author
guido
committed
Fix the way the version number is gotten out of the RCS revision.
git-svn-id: http://svn.python.org/projects/python/trunk@9278 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 672afdd commit d518124

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Demo/scripts/newslist.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@
105105
from nntplib import NNTP
106106
from stat import *
107107

108-
rcsrev = '$Revision$'[11:15]
108+
rcsrev = '$Revision$'
109+
rcsrev = string.join(filter(lambda s: '$' not in s, string.split(rcsrev)))
109110
desc = {}
110111

111112
# Make (possibly) relative filenames into absolute ones

0 commit comments

Comments
 (0)