Skip to content

Commit 3c82f0e

Browse files
authored
Change warnings module import in ctypes._layout to lazy
1 parent 3fae642 commit 3c82f0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/ctypes/_layout.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
"""
66

77
import sys
8-
import warnings
98

109
from _ctypes import CField, buffer_info
1110
import ctypes
1211

12+
lazy import warnings
13+
1314
def round_down(n, multiple):
1415
assert n >= 0
1516
assert multiple > 0

0 commit comments

Comments
 (0)