From 86b1c9740a2089cf9bd32c9ac7fbc1c1053e2ce2 Mon Sep 17 00:00:00 2001 From: Joakim Soderlund Date: Sun, 18 Dec 2016 02:01:22 +0100 Subject: [PATCH] Do not require overriding close in fetchers --- fimfarchive/fetchers.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fimfarchive/fetchers.py b/fimfarchive/fetchers.py index 5cf1d8b..6c2e188 100644 --- a/fimfarchive/fetchers.py +++ b/fimfarchive/fetchers.py @@ -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.