Skip to content

Commit 01e7c35

Browse files
committed
MAINT: drop unneeded copy()
1 parent 0667166 commit 01e7c35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesonpy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def _init_colors() -> Dict[str, str]:
128128

129129

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

0 commit comments

Comments
 (0)