Skip to content

Commit e9e2240

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 4886850 commit e9e2240

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

@@ -195,10 +197,6 @@ def get_replace_platforms(name: str) -> list[str]:
195197
return ["linux_" + "_".join(name.split("_")[1:])]
196198

197199

198-
# These have to be imported here to avoid a circular import.
199-
from .external_references import lddtree_external_references # noqa
200-
from .versioned_symbols import versioned_symbols_policy # noqa
201-
202200
def _load_policy_schema():
203201
with open(join(dirname(abspath(__file__)), "policy-schema.json")) as f_:
204202
schema = json.load(f_)

0 commit comments

Comments
 (0)