diff --git a/tuf/ngclient/fetcher.py b/tuf/ngclient/fetcher.py index f13c8934..c38cdf5e 100644 --- a/tuf/ngclient/fetcher.py +++ b/tuf/ngclient/fetcher.py @@ -17,7 +17,7 @@ # Classes -class FetcherInterface: +class FetcherInterface(abc.ABC): """Defines an interface for abstract network download. By providing a concrete implementation of the abstract interface, @@ -28,7 +28,7 @@ class FetcherInterface: The public API of the class is already implemented. """ - __metaclass__ = abc.ABCMeta + metaclass = abc.ABCMeta @abc.abstractmethod def _fetch(self, url: str) -> Iterator[bytes]: