summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-09-14 07:08:09 (GMT)
committerGeorg Brandl <georg@python.org>2013-09-14 07:08:09 (GMT)
commitdb4309e19ad829635a84b6d3a002ce760c6f5dca (patch)
tree03b313b19e62a99cd90357180dc5ab1150bc52e7
parent86d53caddad11808ca332ab93ec35508b602a0dd (diff)
downloadcpython-db4309e19ad829635a84b6d3a002ce760c6f5dca.zip
cpython-db4309e19ad829635a84b6d3a002ce760c6f5dca.tar.gz
cpython-db4309e19ad829635a84b6d3a002ce760c6f5dca.tar.bz2
Fix tkinter regression introduced by the security fix in #16248.
-rw-r--r--Lib/tkinter/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py
index a6ad888..1286779 100644
--- a/Lib/tkinter/__init__.py
+++ b/Lib/tkinter/__init__.py
@@ -1722,7 +1722,7 @@ class Tk(Misc, Wm):
# ensure that self.tk is always _something_.
self.tk = None
if baseName is None:
- import sys, os
+ import os
baseName = os.path.basename(sys.argv[0])
baseName, ext = os.path.splitext(baseName)
if ext not in ('.py', '.pyc', '.pyo'):