Skip to content

Commit 6980c01

Browse files
committed
Revert "Rename pybing11 symbols."
This reverts commit c6fd79f.
1 parent 34e5862 commit 6980c01

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Lib/__np__/darwin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def rename_init_symbol_in_file(target_lib):
7777
obj_symbols = [x for x in obj_symbols if not x[0].startswith(".")]
7878
for sym in obj_symbols:
7979
if sym[0].startswith("PyInit_") or sym[0].startswith("_PyInit_") or \
80-
"pyx_CommonTypesMetaclass" in sym[0] or "pybind11" in sym[0]:
80+
"pyx_CommonTypesMetaclass" in sym[0]:
8181
symbols_to_rename.add(sym[0])
8282

8383
if not symbols_to_rename:

Lib/__np__/linux.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def rename_init_symbol_in_file(target_lib):
127127

128128
for sym_name, full_line in obj_symbols:
129129
if (sym_name.startswith("PyInit_") or sym_name.startswith("_PyInit_") or
130-
"pyx_CommonTypesMetaclass" in sym_name or "pybind11" in sym_name) and \
130+
"pyx_CommonTypesMetaclass" in sym_name) and \
131131
not (' U ' in full_line or full_line.strip().startswith('U ')):
132132
symbols_to_rename_map[sym_name] = f"{sym_name}__np__{file_hash}"
133133

Lib/__np__/windows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def rename_init_symbol_in_file(target_lib):
231231

232232
# Check if it's a PyInit symbol and if it's defined (not 'U')
233233
if (sym_name.startswith("PyInit_") or sym_name.startswith("_PyInit_") or
234-
"pyx_CommonTypesMetaclass" in sym_name or "pybind11" in sym_name) and \
234+
"pyx_CommonTypesMetaclass" in sym_name) and \
235235
not (' u ' in line.lower() or line.lower().startswith('u ')):
236236
symbols_to_rename_map[sym_name] = f"{sym_name}__np__{file_hash}"
237237

0 commit comments

Comments
 (0)