mirror of
https://github.com/python/cpython
synced 2026-09-29 11:55:30 +03:00
Fix tkinter regression introduced by the security fix in #16248.
This commit is contained in:
parent
9946bd69fa
commit
c17a8dfaca
1 changed files with 1 additions and 1 deletions
|
|
@ -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'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue