From: Antoine Pitrou Date: Thu, 1 Aug 2013 20:25:12 +0000 (+0200) Subject: Fix tkinter regression introduced by the security fix in #16248. X-Git-Tag: v2.7.6rc1~266 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba7620cbffb1f504b7352b3a6922187d371911ce;p=thirdparty%2FPython%2Fcpython.git Fix tkinter regression introduced by the security fix in #16248. --- diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index fcb320f4418a..6947bcc41bcc 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -1736,7 +1736,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'):