Skip to content

Commit 2c15c75

Browse files
class FetcherInterface() changed to FetchterInterface(abc.ABC)
Signed-off-by: adityashrivastav1 <aditya.shri9981@gmail.com> signed off Signed-off-by: adityashrivastav1 <aditya.shri9981@gmail.com>
1 parent 2acea00 commit 2c15c75

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tuf/ngclient/fetcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

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

31-
__metaclass__ = abc.ABCMeta
31+
metaclass = abc.ABCMeta
3232

3333
@abc.abstractmethod
3434
def _fetch(self, url: str) -> Iterator[bytes]:

0 commit comments

Comments
 (0)