summaryrefslogtreecommitdiffstats
path: root/Lib
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)
commitc17a8dfaca76016202c49b2150c946f5ba70db29 (patch)
tree7228a7d3717599eff2d780aab996463295d8ab75 /Lib
parent9946bd69fadefdb1a4f68ae2770eae9b09a3ed86 (diff)
downloadcpython-c17a8dfaca76016202c49b2150c946f5ba70db29.zip
cpython-c17a8dfaca76016202c49b2150c946f5ba70db29.tar.gz
cpython-c17a8dfaca76016202c49b2150c946f5ba70db29.tar.bz2
Fix tkinter regression introduced by the security fix in #16248.
Diffstat (limited to 'Lib')
-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 50e51ab..c5f3c1b 100644
--- a/Lib/tkinter/__init__.py
+++ b/Lib/tkinter/__init__.py
@@ -1623,7 +1623,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'):