[Python-checkins] r54903 - python/branches/release25-maint/Lib/Bastion.py python/branches/release25-maint/Lib/rexec.py

georg.brandl python-checkins at python.org
Sat Apr 21 09:23:37 CEST 2007


Author: georg.brandl
Date: Sat Apr 21 09:23:36 2007
New Revision: 54903

Modified:
   python/branches/release25-maint/Lib/Bastion.py
   python/branches/release25-maint/Lib/rexec.py
Log:
Backport r54787 - better error messages in rexec and bastion


Modified: python/branches/release25-maint/Lib/Bastion.py
==============================================================================
--- python/branches/release25-maint/Lib/Bastion.py	(original)
+++ python/branches/release25-maint/Lib/Bastion.py	Sat Apr 21 09:23:36 2007
@@ -97,7 +97,7 @@
 
     """
 
-    raise RuntimeError, "This code is not secure in Python 2.2 and 2.3"
+    raise RuntimeError, "This code is not secure in Python 2.2 and later"
 
     # Note: we define *two* ad-hoc functions here, get1 and get2.
     # Both are intended to be called in the same way: get(name).

Modified: python/branches/release25-maint/Lib/rexec.py
==============================================================================
--- python/branches/release25-maint/Lib/rexec.py	(original)
+++ python/branches/release25-maint/Lib/rexec.py	Sat Apr 21 09:23:36 2007
@@ -181,7 +181,7 @@
 
         """
 
-        raise RuntimeError, "This code is not secure in Python 2.2 and 2.3"
+        raise RuntimeError, "This code is not secure in Python 2.2 and later"
 
         ihooks._Verbose.__init__(self, verbose)
         # XXX There's a circular reference here:


More information about the Python-checkins mailing list