diff options
author | Flavian Hautbois <flavianh@sicara.com> | 2019-07-26 03:30:33 +0200 |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2019-07-25 21:30:33 -0400 |
commit | 76b645124b3aaa34bc664eece43707c01ef1b382 (patch) | |
tree | 10aaa3e7e89080bd68128c4de544050599d261bf /Lib/tkinter/dnd.py | |
parent | c4cda4369f4b8f33082890d16dfc364a90658ef6 (diff) | |
download | cpython-git-76b645124b3aaa34bc664eece43707c01ef1b382.tar.gz |
bpo-29446: tkinter 'import *' only imports what it should (GH-14864)
Add __all__ to tkinter.__init__ and submodules. Replace 'import *'
with explicit imports in some submodules.
Diffstat (limited to 'Lib/tkinter/dnd.py')
-rw-r--r-- | Lib/tkinter/dnd.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/tkinter/dnd.py b/Lib/tkinter/dnd.py index 4de2331c87..3120ff342f 100644 --- a/Lib/tkinter/dnd.py +++ b/Lib/tkinter/dnd.py @@ -99,9 +99,10 @@ active; it will never call dnd_commit(). """ - import tkinter +__all__ = ["dnd_start", "DndHandler"] + # The factory function |