Skip to content

Commit f0e2f9b

Browse files
authored
Lazy import modules in tkinter __init__
1 parent 9831dea commit f0e2f9b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/tkinter/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@
3030
tk.mainloop()
3131
"""
3232

33-
import collections
34-
import enum
33+
lazy import collections
34+
lazy import enum
3535
import sys
36-
import types
36+
lazy import types
3737

3838
import _tkinter # If this fails your Python may not be configured for Tk
3939
TclError = _tkinter.TclError
4040
from tkinter.constants import *
41-
import re
41+
lazy import re
4242

4343
wantobjects = 1
4444
_debug = False # set to True to print executed Tcl/Tk commands

0 commit comments

Comments
 (0)