]> granicus.if.org Git - python/commitdiff
Fix tkinter regression introduced by the security fix in #16248.
authorGeorg Brandl <georg@python.org>
Sat, 14 Sep 2013 07:08:09 +0000 (09:08 +0200)
committerGeorg Brandl <georg@python.org>
Sat, 14 Sep 2013 07:08:09 +0000 (09:08 +0200)
Lib/tkinter/__init__.py

index 50e51ab2091c9e528c927021061d5764e89ef4c3..c5f3c1bdfc42f2ff7175bc08e1c4eaf71e359ab6 100644 (file)
@@ -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'):