Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba17905

Browse files
committed
Fix the way the version number is gotten out of the RCS revision.
1 parent 1a24bb5 commit ba17905

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)