summaryrefslogtreecommitdiff
path: root/Lib/tkinter/font.py
diff options
context:
space:
mode:
authorFlavian Hautbois <flavianh@sicara.com>2019-07-26 03:30:33 +0200
committerTerry Jan Reedy <tjreedy@udel.edu>2019-07-25 21:30:33 -0400
commit76b645124b3aaa34bc664eece43707c01ef1b382 (patch)
tree10aaa3e7e89080bd68128c4de544050599d261bf /Lib/tkinter/font.py
parentc4cda4369f4b8f33082890d16dfc364a90658ef6 (diff)
downloadcpython-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/font.py')
-rw-r--r--Lib/tkinter/font.py5
1 files changed, 3 insertions, 2 deletions
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"