[Python-checkins] cpython (2.7): Fix tkinter regression introduced by the security fix in #16248.
antoine.pitrou
python-checkins at python.org
Thu Aug 1 22:25:43 CEST 2013
http://hg.python.org/cpython/rev/0f17aed78168
changeset: 84959:0f17aed78168
branch: 2.7
parent: 84957:bb546f6d8ab4
user: Antoine Pitrou <solipsis at pitrou.net>
date: Thu Aug 01 22:25:12 2013 +0200
summary:
Fix tkinter regression introduced by the security fix in #16248.
files:
Lib/lib-tk/Tkinter.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
--- 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'):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list