From 76b645124b3aaa34bc664eece43707c01ef1b382 Mon Sep 17 00:00:00 2001 From: Flavian Hautbois Date: Fri, 26 Jul 2019 03:30:33 +0200 Subject: 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. --- Lib/tkinter/font.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Lib/tkinter/font.py') diff --git a/Lib/tkinter/font.py b/Lib/tkinter/font.py index 136425726a..eeff454b53 100644 --- a/Lib/tkinter/font.py +++ b/Lib/tkinter/font.py @@ -3,11 +3,12 @@ # written by Fredrik Lundh, February 1998 # -__version__ = "0.9" - import itertools import tkinter +__version__ = "0.9" +__all__ = ["NORMAL", "ROMAN", "BOLD", "ITALIC", + "nametofont", "Font", "families", "names"] # weight/slant NORMAL = "normal" -- cgit v1.2.1