From db4309e19ad829635a84b6d3a002ce760c6f5dca Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 14 Sep 2013 09:08:09 +0200 Subject: [PATCH] Fix tkinter regression introduced by the security fix in #16248. --- Lib/tkinter/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py index a6ad88823a8..1286779b990 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'):