Skip to content

Commit 26e872a

Browse files
authored
Merge pull request #2215 from aditya-shrivastavv/metaclass-fix
changed depreciated __metaclass__ to metaclass
2 parents ba9ea5b + 42cb50b commit 26e872a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tuf/ngclient/fetcher.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
# Classes
20-
class FetcherInterface:
20+
class FetcherInterface(metaclass=abc.ABCMeta):
2121
"""Defines an interface for abstract network download.
2222
2323
By providing a concrete implementation of the abstract interface,
@@ -28,8 +28,6 @@ class FetcherInterface:
2828
The public API of the class is already implemented.
2929
"""
3030

31-
__metaclass__ = abc.ABCMeta
32-
3331
@abc.abstractmethod
3432
def _fetch(self, url: str) -> Iterator[bytes]:
3533
"""Fetch the contents of HTTP/HTTPS ``url`` from a remote server.

0 commit comments

Comments
 (0)