Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f590f2c commit 2388358Copy full SHA for 2388358
1 file changed
Tools/build/smelly.py
@@ -11,6 +11,11 @@
11
if sys.platform == 'darwin':
12
ALLOWED_PREFIXES += ('__Py',)
13
14
+# "Legacy": some old symbols are prefixed by "PY_".
15
+EXCEPTIONS = frozenset({
16
+ 'PY_TIMEOUT_MAX',
17
+})
18
+
19
IGNORED_EXTENSION = "_ctypes_test"
20
# Ignore constructor and destructor functions
21
IGNORED_SYMBOLS = {'_init', '_fini'}
@@ -72,7 +77,7 @@ def get_smelly_symbols(stdout):
72
77
symbol = parts[-1]
73
78
result = '%s (type: %s)' % (symbol, symtype)
74
79
75
- if symbol.startswith(ALLOWED_PREFIXES):
80
+ if symbol.startswith(ALLOWED_PREFIXES) or symbol in EXCEPTIONS:
76
81
python_symbols.append(result)
82
continue
83
0 commit comments