commit | ba7620cbffb1f504b7352b3a6922187d371911ce | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Thu Aug 01 22:25:12 2013 +0200 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Thu Aug 01 22:25:12 2013 +0200 |
tree | b08143f4044e18ca3f60c4c6fe7f37862ce6c444 | |
parent | 92fae55bc9c7fe3250f7e1348da67c7dd7608670 [diff] [blame] |
Fix tkinter regression introduced by the security fix in #16248.
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index fcb320f..6947bcc 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py
@@ -1736,7 +1736,7 @@ # 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'):