8000 Fix tkinter regression introduced by the security fix in #16248. · python/cpython@c17a8df · GitHub
[go: up one dir, main page]

Skip to content

Commit c17a8df

Browse files
committed
Fix tkinter regression introduced by the security fix in #16248.
1 parent 9946bd6 commit c17a8df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/tkinter/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1623,7 +1623,7 @@ def __init__(self, screenName=None, baseName=None, className='Tk',
16231623
# ensure that self.tk is always _something_.
16241624
self.tk = None
16251625
if baseName is None:
1626-
import sys, os
1626+
import os
16271627
baseName = os.path.basename(sys.argv[0])
16281628
baseName, ext = os.path.splitext(baseName)
16291629
if ext not in ('.py', '.pyc', '.pyo'):

0 commit comments

Comments
 (0)
0