We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ba9ea5b + 42cb50b commit 26e872aCopy full SHA for 26e872a
1 file changed
tuf/ngclient/fetcher.py
@@ -17,7 +17,7 @@
17
18
19
# Classes
20
-class FetcherInterface:
+class FetcherInterface(metaclass=abc.ABCMeta):
21
"""Defines an interface for abstract network download.
22
23
By providing a concrete implementation of the abstract interface,
@@ -28,8 +28,6 @@ class FetcherInterface:
28
The public API of the class is already implemented.
29
"""
30
31
- __metaclass__ = abc.ABCMeta
32
-
33
@abc.abstractmethod
34
def _fetch(self, url: str) -> Iterator[bytes]:
35
"""Fetch the contents of HTTP/HTTPS ``url`` from a remote server.
0 commit comments