Skip to content

Commit f880e5d

Browse files
committed
Fix UnboundLocalError regression due to previous incorrect fix for
issue 16248.
1 parent f25d957 commit f880e5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/lib-tk/Tkinter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1634,7 +1634,7 @@ def __init__(self, screenName=None, baseName=None, className='Tk',
16341634
# ensure that self.tk is always _something_.
16351635
self.tk = None
16361636
if baseName is None:
1637-
import sys, os
1637+
import os
16381638
baseName = os.path.basename(sys.argv[0])
16391639
baseName, ext = os.path.splitext(baseName)
16401640
if ext not in ('.py', '.pyc', '.pyo'):

0 commit comments

Comments
 (0)