[Zope-Checkins] SVN: Zope/trunk/lib/python/Zope/Startup/__init__.py updated check_python_version to current requirements

Andreas Jung andreas at andreas-jung.com
Fri May 28 08:24:41 EDT 2004


Log message for revision 25079:
updated check_python_version to current requirements



-=-
Modified: Zope/trunk/lib/python/Zope/Startup/__init__.py
===================================================================
--- Zope/trunk/lib/python/Zope/Startup/__init__.py	2004-05-28 06:18:14 UTC (rev 25078)
+++ Zope/trunk/lib/python/Zope/Startup/__init__.py	2004-05-28 12:24:41 UTC (rev 25079)
@@ -342,18 +342,13 @@
 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.
     # This needs to be a function so it may be used outside of Zope




More information about the Zope-Checkins mailing list