Skip to content

Commit da510e3

Browse files
committed
Fix MetaPathFinder compatibility stub on Python 2.7
1 parent 169d0df commit da510e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

importlib_metadata/abc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
if sys.version_info >= (3,): # pragma: nocover
88
from importlib.abc import MetaPathFinder
99
else: # pragma: nocover
10-
from abc import ABCMeta as MetaPathFinder
10+
class MetaPathFinder(object):
11+
__metaclass__ = abc.ABCMeta
1112

1213

1314
class DistributionFinder(MetaPathFinder):

0 commit comments

Comments
 (0)