From: Georg Brandl Date: Sat, 21 Apr 2007 07:23:36 +0000 (+0000) Subject: Backport r54787 - better error messages in rexec and bastion X-Git-Tag: v2.5.2c1~349 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6cf5abfd66ea1b01e5bed6f43bddce684ff5df87;p=python Backport r54787 - better error messages in rexec and bastion --- diff --git a/Lib/Bastion.py b/Lib/Bastion.py index 58cce978ce..93511b0a94 100644 --- a/Lib/Bastion.py +++ b/Lib/Bastion.py @@ -97,7 +97,7 @@ def Bastion(object, filter = lambda name: name[:1] != '_', """ - 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). diff --git a/Lib/rexec.py b/Lib/rexec.py index d289d6aa1e..8c9cb9f1e5 100644 --- a/Lib/rexec.py +++ b/Lib/rexec.py @@ -181,7 +181,7 @@ class RExec(ihooks._Verbose): """ - 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: