[Zope-Checkins] CVS: Zope2 - version_txt.py:1.2.124.1
andreas@serenade.digicool.com
andreas@serenade.digicool.com
Fri, 29 Jun 2001 12:48:05 -0400
Update of /cvs-repository/Zope2/lib/python/App
In directory serenade:/tmp/cvs-serv1244/lib/python/App
Modified Files:
Tag: zope-2_3-branch
version_txt.py
Log Message:
Collector 2353: Zope *could* a bogus Server: header
--- Updated File version_txt.py in package Zope2 --
--- version_txt.py 1999/08/11 21:32:37 1.2
+++ version_txt.py 2001/06/29 16:48:05 1.2.124.1
@@ -83,10 +83,10 @@
#
##############################################################################
-import os
+import os,string
def version_txt():
- try: return open(os.path.join(SOFTWARE_HOME,'version.txt')).read()
+ try: return string.strip(open(os.path.join(SOFTWARE_HOME,'version.txt')).readline())
except: return '(unreleased version)'
return self._v_version_txt