mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
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.
This commit is contained in:
parent
016cec75bd
commit
4a98e3b6d0
3 changed files with 9 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue