Skip to content

Commit

Permalink
Re-use 'suppress' as imported.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 12, 2021
1 parent 6f754c2 commit 5595f2d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions importlib_metadata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import functools
import itertools
import posixpath
import contextlib
import collections

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

@property
def mtime(self):
with contextlib.suppress(OSError):
with suppress(OSError):
return os.stat(self.root).st_mtime
self.lookup.cache_clear()

Expand Down

0 comments on commit 5595f2d

Please sign in to comment.