Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b2eff728
Commit
b2eff728
authored
Sep 02, 2011
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #12636: IDLE reads the coding cookie when executing a Python script.
parent
136ae775
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
Lib/idlelib/PyShell.py
Lib/idlelib/PyShell.py
+6
-5
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/idlelib/PyShell.py
View file @
b2eff728
#! /usr/bin/env python3
import
getopt
import
os
import
os.path
import
sys
import
getopt
import
re
import
socket
import
time
import
subprocess
import
sys
import
threading
import
time
import
tokenize
import
traceback
import
types
import
subprocess
import
linecache
from
code
import
InteractiveInterpreter
...
...
@@ -572,7 +573,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
def
execfile
(
self
,
filename
,
source
=
None
):
"Execute an existing file"
if
source
is
None
:
with
open
(
filename
,
"r"
)
as
fp
:
with
tokenize
.
open
(
filename
)
as
fp
:
source
=
fp
.
read
()
try
:
code
=
compile
(
source
,
filename
,
"exec"
)
...
...
Misc/NEWS
View file @
b2eff728
...
...
@@ -28,6 +28,8 @@ Core and Builtins
Library
-------
- Issue #12636: IDLE reads the coding cookie when executing a Python script.
- Issue #10946: The distutils commands bdist_dumb, bdist_wininst and bdist_msi
now respect a --skip-build option given to bdist.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment