Skip to content

Commit 086216f

Browse files
unused variable removed, inheritance fixed
Signed-off-by: adityashrivastav1 <aditya.shri9981@gmail.com>
1 parent 2c15c75 commit 086216f

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(abc.ABC):
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(abc.ABC):
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
"""Fetches the contents of HTTP/HTTPS ``url`` from a remote server.

0 commit comments

Comments
 (0)