aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/trace.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/trace.py')
-rw-r--r--Lib/trace.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/trace.py b/Lib/trace.py
index fa24fc1cc35..eb21fde387b 100644
--- a/Lib/trace.py
+++ b/Lib/trace.py
@@ -493,6 +493,7 @@ class Trace:
threading.settrace(self.globaltrace)
sys.settrace(self.globaltrace)
try:
+ del sys.modules['pickle']
exec(cmd, globals, locals)
finally:
if not self.donothing: