Skip to content

Commit 653f8ed

Browse files
committed
audit: list of allowed symbols is no longer required
1 parent d2e4841 commit 653f8ed

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

abi3audit/_audit.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@
1818

1919
logger = logging.getLogger(__name__)
2020

21-
# A handpicked exclusion list of symbols that are not strictly in the limited API
22-
# or stable ABI, but in practice always appear in ABI3-compatible code.
23-
# Since they are not listed in CPython's `stable_abi.toml`, we maintain them here separately.
24-
# The list of symbols is currently empty. Any `static inline` function from Python headers
25-
# may produce a local symbol which does not affect ABI3 compatibility.
26-
_ALLOWED_SYMBOLS: set[str] = set()
27-
2821

2922
class AuditError(Exception):
3023
pass
@@ -132,7 +125,7 @@ def audit(so: SharedObject, assume_minimum_abi3: PyVersion = PyVersion(3, 2)) ->
132125
continue
133126
# Local symbols are fine, since they are inlined functions
134127
# from the CPython limited API.
135-
if sym.name not in _ALLOWED_SYMBOLS and sym.visibility != "local":
128+
if sym.visibility != "local":
136129
non_abi3_symbols.add(sym)
137130
except Exception as exc:
138131
raise AuditError(f"failed to collect symbols in shared object: {exc}") from exc

0 commit comments

Comments
 (0)