diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2015-08-06 04:55:07 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2015-08-06 04:55:07 (GMT) |
commit | c7c66c91427734dcdb34ae78eee2431e92fa6f07 (patch) | |
tree | f8c97540eaed53b4a37eb1858a7ab473d6a9f2e2 /Lib/idlelib/ScriptBinding.py | |
parent | d38718d41965489efefe323b97024cd8c69eecaf (diff) | |
parent | 0901d84e3537174ed00e2a684a81d3c0c6890c58 (diff) | |
download | cpython-c7c66c91427734dcdb34ae78eee2431e92fa6f07.zip cpython-c7c66c91427734dcdb34ae78eee2431e92fa6f07.tar.gz cpython-c7c66c91427734dcdb34ae78eee2431e92fa6f07.tar.bz2 |
Issue #23672:Merge with 3.5
Diffstat (limited to 'Lib/idlelib/ScriptBinding.py')
-rw-r--r-- | Lib/idlelib/ScriptBinding.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/idlelib/ScriptBinding.py b/Lib/idlelib/ScriptBinding.py index d700525..e8cb2fc 100644 --- a/Lib/idlelib/ScriptBinding.py +++ b/Lib/idlelib/ScriptBinding.py @@ -36,6 +36,7 @@ To fix case 2, change all tabs to spaces by using Edit->Select All followed \ by Format->Untabify Region and specify the number of columns used by each tab. """ + class ScriptBinding: menudefs = [ @@ -142,7 +143,8 @@ class ScriptBinding: return 'break' interp = self.shell.interp if PyShell.use_subprocess: - interp.restart_subprocess(with_cwd=False, filename=code.co_filename) + interp.restart_subprocess(with_cwd=False, filename= + self.editwin._filename_to_unicode(filename)) dirname = os.path.dirname(filename) # XXX Too often this discards arguments the user just set... interp.runcommand("""if 1: |