Skip to content

Commit

Permalink
MAINT: drop unneeded copy()
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolodi authored and rgommers committed Apr 8, 2023
1 parent 698477b commit 093f10d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def _init_colors() -> Dict[str, str]:


_SUFFIXES = importlib.machinery.all_suffixes()
_EXTENSION_SUFFIXES = importlib.machinery.EXTENSION_SUFFIXES.copy()
_EXTENSION_SUFFIXES = importlib.machinery.EXTENSION_SUFFIXES
_EXTENSION_SUFFIX_REGEX = re.compile(r'^\.(?:(?P<abi>[^.]+)\.)?(?:so|pyd|dll)$')
assert all(re.match(_EXTENSION_SUFFIX_REGEX, x) for x in _EXTENSION_SUFFIXES)

Expand Down

0 comments on commit 093f10d

Please sign in to comment.