diff --git a/Lib/rexec.py b/Lib/rexec.py index 3f34153a9b9..860aab2456f 100644 --- a/Lib/rexec.py +++ b/Lib/rexec.py @@ -229,7 +229,7 @@ def copy_except(self, src, exceptions): for name in exceptions: try: delattr(dst, name) - except KeyError: + except AttributeError: pass return dst @@ -356,7 +356,7 @@ def r_open(self, file, mode='r', buf=-1): def test(): import traceback - r = RExec(None, '-v' in sys.argv[1:]) + r = RExec(verbose=('-v' in sys.argv[1:])) print "*** RESTRICTED *** Python", sys.version print sys.copyright while 1: