mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
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>
This commit is contained in:
parent
2acea003fc
commit
2c15c75e50
1 changed files with 2 additions and 2 deletions
|
|
@ -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]:
|
||||
|
|
|
|||
Loading…
Reference in a new issue