Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 2 additions & 1 deletion Lib/ctypes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

import os as _os
import sys as _sys
import sysconfig as _sysconfig
import types as _types

lazy import sysconfig as _sysconfig

from _ctypes import Union, Structure, Array
from _ctypes import _Pointer
from _ctypes import CFuncPtr as _CFuncPtr
Expand Down
3 changes: 2 additions & 1 deletion Lib/ctypes/_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
"""

import sys
import warnings

from _ctypes import CField, buffer_info
import ctypes

lazy import warnings

def round_down(n, multiple):
assert n >= 0
assert multiple > 0
Expand Down
5 changes: 3 additions & 2 deletions Lib/ctypes/util.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import os
import shutil
import subprocess
import sys

lazy import shutil
lazy import subprocess

# find_library(name) returns the pathname of a library, or None.
if os.name == "nt":

Expand Down
Loading