]> granicus.if.org Git - python/commitdiff
Fix UnboundLocalError regression due to previous incorrect fix for
authorBarry Warsaw <barry@python.org>
Wed, 21 Aug 2013 00:35:20 +0000 (20:35 -0400)
committerBarry Warsaw <barry@python.org>
Wed, 21 Aug 2013 00:35:20 +0000 (20:35 -0400)
issue 16248.

Lib/lib-tk/Tkinter.py

index ea563313f1dbe3154c7358126bc428981a9e32d5..b5875e58dcc9c2dd608ad4b7c6f717c7c815a2a3 100644 (file)
@@ -1634,7 +1634,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'):