[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup - __init__.py:1.7.2.5

Andreas Jung andreas at andreas-jung.com
Fri May 28 08:23:22 EDT 2004


Update of /cvs-repository/Zope/lib/python/Zope/Startup
In directory cvs.zope.org:/tmp/cvs-serv14424/lib/python/Zope/Startup

Modified Files:
      Tag: Zope-2_7-branch
	__init__.py 
Log Message:
updated check_python_version() to current requirements


=== Zope/lib/python/Zope/Startup/__init__.py 1.7.2.4 => 1.7.2.5 ===
--- Zope/lib/python/Zope/Startup/__init__.py:1.7.2.4	Thu Jan  8 18:34:05 2004
+++ Zope/lib/python/Zope/Startup/__init__.py	Fri May 28 08:23:20 2004
@@ -285,17 +285,11 @@
 def check_python_version():
     # check for Python version
     python_version = sys.version.split()[0]
-    optimum_version = '2.2.3'
-    if python_version < '2.2':
+    optimum_version = '2.3.3'
+    if python_version < '2.3.3':
         raise ZConfig.ConfigurationError(
-            'Invalid python version ' + python_version)
-    if python_version[:3] == '2.2':
-        if python_version[4:5] < '2':
-            err = ('You are running Python version %s.  This Python version '
-                   'has known bugs that may cause Zope to run improperly. '
-                   'Consider upgrading to Python %s\n' %
-                   (python_version, optimum_version))
-            sys.stderr.write(err)
+            'Invalid python version: %s, the optimal version is %s or higher' %
+            (python_version, optimum_version))
 
 def dropPrivileges(cfg):
     # Drop root privileges if we have them and we're on a posix platform.




More information about the Zope-Checkins mailing list