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
db4309e1
Commit
db4309e1
authored
Sep 14, 2013
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tkinter regression introduced by the security fix in #16248.
parent
86d53cad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Lib/tkinter/__init__.py
Lib/tkinter/__init__.py
+1
-1
No files found.
Lib/tkinter/__init__.py
View file @
db4309e1
...
@@ -1722,7 +1722,7 @@ class Tk(Misc, Wm):
...
@@ -1722,7 +1722,7 @@ class Tk(Misc, Wm):
# ensure that self.tk is always _something_.
# ensure that self.tk is always _something_.
self.tk = None
self.tk = None
if baseName is None:
if baseName is None:
import
sys,
os
import os
baseName = os.path.basename(sys.argv[0])
baseName = os.path.basename(sys.argv[0])
baseName, ext = os.path.splitext(baseName)
baseName, ext = os.path.splitext(baseName)
if ext not in ('.py', '.pyc', '.pyo'):
if ext not in ('.py', '.pyc', '.pyo'):
...
...
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