Skip to content

Commit 1ce987e

Browse files
committed
move laxy imports
1 parent ce1d31e commit 1ce987e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/inspect.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@
153153
import itertools
154154
import linecache
155155
import os
156+
lazy import re
156157
import sys
158+
lazy import tokenize
157159
import token
158160
import types
159161
import functools
@@ -163,9 +165,6 @@
163165
from collections import namedtuple, OrderedDict
164166
from _weakref import ref as make_weakref
165167

166-
lazy import re
167-
lazy import tokenize
168-
169168
# Create constants for the compiler flags in Include/cpython/code.h
170169
# We try to get them from dis to avoid duplication
171170
mod_dict = globals()

0 commit comments

Comments
 (0)