diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-10-18 14:43:38 +0000 |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-10-18 14:43:38 +0000 |
commit | 4a98e3b6d06e5477e5d62f18e85056cbb7253f98 (patch) | |
tree | 0f2f3cc2fd70be8ef4930dbeb01fadf7034bc76e /Lib/trace.py | |
parent | 016cec75bd43b29240370f81319ceccdab5cc771 (diff) | |
download | cpython-git-4a98e3b6d06e5477e5d62f18e85056cbb7253f98.tar.gz |
Issue #10117: Tools/scripts/reindent.py now accepts source files that
use encoding other than ASCII or UTF-8. Source encoding is preserved
when reindented code is written to a file.
Diffstat (limited to 'Lib/trace.py')
-rw-r--r-- | Lib/trace.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/trace.py b/Lib/trace.py index fa24fc1cc3..eb21fde387 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: |