[upstream_util, wpiutil] Refactor python scripts (#4614)

Co-authored-by: Sourcery AI <>
Co-authored-by: Vasista Vovveti <vasistavovveti@gmail.com>
Co-authored-by: David Vo <auscompgeek@users.noreply.github.com>
This commit is contained in:
Ege Akman
2022-11-14 10:11:54 +03:00
committed by GitHub
parent c4e526d315
commit 5a320c326b
3 changed files with 12 additions and 16 deletions

View File

@@ -73,12 +73,8 @@ def eigen_inclusions(dp, f):
]
modules_rgx = r"|".join("/" + m for m in modules)
# "Std" matches StdDeque, StdList, and StdVector headers
if re.search(modules_rgx, abspath) or "Std" in f:
return True
else:
# Exclude all other modules
return False
# "Std" matches StdDeque, StdList, and StdVector headers. Other modules are excluded.
return bool(re.search(modules_rgx, abspath) or "Std" in f)
def unsupported_inclusions(dp, f):