Skip to content

Commit c33af5f

Browse files
committed
Fix import locations in policy module
These had to be imported at the bottom to avoid a circular import. Now that we got rid of the globals in the policy module, we can move these into the right place.
1 parent 7b4f77b commit c33af5f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/auditwheel/policy/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
from ..libc import Libc, get_libc
1212
from ..musllinux import find_musl_libc, get_musl_version
13+
from .external_references import lddtree_external_references
14+
from .versioned_symbols import versioned_symbols_policy
1315

1416
_HERE = Path(__file__).parent
1517

@@ -199,10 +201,6 @@ def get_replace_platforms(name: str) -> list[str]:
199201
return ["linux_" + "_".join(name.split("_")[1:])]
200202

201203

202-
# These have to be imported here to avoid a circular import.
203-
from .external_references import lddtree_external_references # noqa
204-
from .versioned_symbols import versioned_symbols_policy # noqa
205-
206204
def _load_policy_schema():
207205
with open(join(dirname(abspath(__file__)), "policy-schema.json")) as f_:
208206
schema = json.load(f_)

0 commit comments

Comments
 (0)