Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reorder imports for clarity
  • Loading branch information
sharktide authored Apr 12, 2026
commit 1da6e7b7cc0063fc347b5a24b2d0730761335bf2
8 changes: 3 additions & 5 deletions Lib/tkinter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
"""
import _tkinter # If this fails your Python may not be configured for Tk
from tkinter.constants import *
import collections
import enum

lazy import collections
lazy import enum
lazy import sys
lazy import types
Comment thread
sharktide marked this conversation as resolved.
Outdated

lazy import re
TclError = _tkinter.TclError

wantobjects = 1
Expand All @@ -45,8 +45,6 @@
TkVersion = float(_tkinter.TK_VERSION)
TclVersion = float(_tkinter.TCL_VERSION)

lazy import re

READABLE = _tkinter.READABLE
WRITABLE = _tkinter.WRITABLE
EXCEPTION = _tkinter.EXCEPTION
Expand Down
Loading