]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix tkinter regression introduced by the security fix in #16248.
authorAntoine Pitrou <solipsis@pitrou.net>
Thu, 1 Aug 2013 20:25:12 +0000 (22:25 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Thu, 1 Aug 2013 20:25:12 +0000 (22:25 +0200)
Lib/lib-tk/Tkinter.py

index fcb320f4418ae8228bc68cc07a15df3ef76aadfc..6947bcc41bcc715fc56026c63cd9b47b53fbdfc8 100644 (file)
@@ -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'):