[Python-checkins] cpython (3.2): Fix tkinter regression introduced by the security fix in #16248.

georg.brandl python-checkins at python.org
Sat Sep 14 09:12:15 CEST 2013


http://hg.python.org/cpython/rev/c18c18774e24
changeset: 85693:c18c18774e24
branch: 3.2
parent: 83826:b9b521efeba3
user: Georg Brandl <georg at python.org>
date: Sat Sep 14 09:08:09 2013 +0200
summary:
 Fix tkinter regression introduced by the security fix in #16248.
files:
 Lib/tkinter/__init__.py | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py
--- a/Lib/tkinter/__init__.py
+++ b/Lib/tkinter/__init__.py
@@ -1722,7 +1722,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

AltStyle によって変換されたページ (->オリジナル) /