summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/rexec.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/rexec.py b/Lib/rexec.py
index 3f34153..860aab2 100644
--- a/Lib/rexec.py
+++ b/Lib/rexec.py
@@ -229,7 +229,7 @@ class RExec(ihooks._Verbose):
for name in exceptions:
try:
delattr(dst, name)
- except KeyError:
+ except AttributeError:
pass
return dst
@@ -356,7 +356,7 @@ class RExec(ihooks._Verbose):
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: