Do not require overriding close in fetchers

This commit is contained in:
Joakim Soderlund 2016-12-18 02:01:22 +01:00
parent e32cd958ef
commit 86b1c9740a

View file

@ -57,7 +57,7 @@ class Fetcher:
"""
Closes file descriptors and frees memory.
"""
raise NotImplementedError()
pass
def fetch(self, key):
"""
@ -115,9 +115,6 @@ class FimfictionFetcher(Fetcher):
data_path = 'https://www.fimfiction.net/download_story.php'
meta_path = 'https://www.fimfiction.net/api/story.php'
def close(self):
pass
def get(self, url, **kwargs):
"""
Performs an HTTP GET request.