8000 Re-use 'suppress' as imported. · python/importlib_metadata@5595f2d · GitHub
[go: up one dir, main page]

Skip to content

Commit 5595f2d

Browse files
committed
Re-use 'suppress' as imported.
1 parent 6f754c2 commit 5595f2d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

importlib_metadata/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import functools
1313
import itertools
1414
import posixpath
15-
import contextlib
1615
import collections
1716

1817
from ._collections import FreezableDefaultDict, Pair
@@ -689,7 +688,7 @@ def search(self, name):
689688

690689
@property
691690
def mtime(self):
692-
with contextlib.suppress(OSError):
691+
with suppress(OSError):
693692
return os.stat(self.root).st_mtime
694693
self.lookup.cache_clear()
695694

0 commit comments

Comments
 (0)
0