Skip to content

Commit

Permalink
bpo-36876: Update the c-analyzer whitelist. (gh-31225)
Browse files Browse the repository at this point in the history
This change adds variables that had been added since the last time the whitelist was updated. It also cleans up the list a little.

https://bugs.python.org/issue36876
  • Loading branch information
ericsnowcurrently authored Feb 9, 2022
1 parent 06e1701 commit 77bab59
Show file tree
Hide file tree
Showing 4 changed files with 2,364 additions and 2,010 deletions.
2 changes: 2 additions & 0 deletions Tools/c-analyzer/cpython/_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
_DATA_DIR = os.path.dirname(__file__)
KNOWN_FILE = os.path.join(_DATA_DIR, 'known.tsv')
IGNORED_FILE = os.path.join(_DATA_DIR, 'ignored.tsv')
NEED_FIX_FILE = os.path.join(_DATA_DIR, 'globals-to-fix.tsv')
KNOWN_IN_DOT_C = {
'struct _odictobject': False,
'PyTupleObject': False,
Expand Down Expand Up @@ -85,6 +86,7 @@ def write_known():
def read_ignored():
if not _IGNORED:
_IGNORED.update(_datafiles.read_ignored(IGNORED_FILE, relroot=REPO_ROOT))
_IGNORED.update(_datafiles.read_ignored(NEED_FIX_FILE, relroot=REPO_ROOT))
return dict(_IGNORED)


Expand Down
Loading

0 comments on commit 77bab59

Please sign in to comment.