diff options
author | Georg Brandl <georg@python.org> | 2008-05-17 18:17:45 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-17 18:17:45 (GMT) |
commit | 9098a0d1000d6a0d5c5e98ab3f13746c7400c46e (patch) | |
tree | bdd95e87ebcb3ef4de0a43708dd7b5e8cf4234aa | |
parent | f4a942c98011ddb1f0b985c6a81178baad4e857b (diff) | |
download | cpython-9098a0d1000d6a0d5c5e98ab3f13746c7400c46e.zip cpython-9098a0d1000d6a0d5c5e98ab3f13746c7400c46e.tar.gz cpython-9098a0d1000d6a0d5c5e98ab3f13746c7400c46e.tar.bz2 |
Don't export a name "tkinter" from the "tkinter" package.
Else people doing "from tkinter import *" will get a nasty surprise.
-rw-r--r-- | Lib/tkinter/__init__.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py index 32bdaba..554cf86 100644 --- a/Lib/tkinter/__init__.py +++ b/Lib/tkinter/__init__.py @@ -37,7 +37,6 @@ if sys.platform == "win32": # Attempt to configure Tcl/Tk without requiring PATH from tkinter import _fix import _tkinter # If this fails your Python may not be configured for Tk -tkinter = _tkinter # b/w compat for export TclError = _tkinter.TclError from types import * from tkinter.constants import * |