[Zope-Checkins] CVS: Zope/lib/python/App - version_txt.py:1.12
Chris McDonough
chrism@zope.com
Mon, 21 Jul 2003 00:21:23 -0400
Update of /cvs-repository/Zope/lib/python/App
In directory cvs.zope.org:/tmp/cvs-serv24507
Modified Files:
version_txt.py
Log Message:
Fix for collector 974 (linefeeds in version.txt cause header problems).
=== Zope/lib/python/App/version_txt.py 1.11 => 1.12 ===
--- Zope/lib/python/App/version_txt.py:1.11 Thu Feb 13 10:55:06 2003
+++ Zope/lib/python/App/version_txt.py Mon Jul 21 00:21:18 2003
@@ -36,7 +36,7 @@
'\.(?P<minor>[0-9]+)\.(?P<micro>[0-9]+)'
'(?P<status>[A-Za-z]+)?(?P<release>[0-9]+)?')
try:
- s = open(fn).read()
+ s = open(fn).read().strip()
except IOError:
ss = 'unreleased version'
_zope_version = (-1, -1, -1, '', -1)