From c3d2da9e3214ce81420725bd5e7c202b61dcbdc3 Mon Sep 17 00:00:00 2001 From: Shay Palachy Date: Sat, 7 Sep 2019 12:35:19 +0300 Subject: [PATCH] fixing more code issues --- cachier/base_core.py | 3 ++- tests/test_pickle_core.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cachier/base_core.py b/cachier/base_core.py index 1bc73a3..99b1d9a 100644 --- a/cachier/base_core.py +++ b/cachier/base_core.py @@ -8,7 +8,8 @@ import abc # for the _BaseCore abstract base class -class _BaseCore(object): + +class _BaseCore(): __metaclass__ = abc.ABCMeta def __init__(self, stale_after, next_time): diff --git a/tests/test_pickle_core.py b/tests/test_pickle_core.py index c1e36d6..7dc2537 100644 --- a/tests/test_pickle_core.py +++ b/tests/test_pickle_core.py @@ -238,7 +238,7 @@ def _calls_bad_cache(res_queue, trash_cache): cache_file.seek(0) cache_file.truncate() res_queue.put(res) - except Exception as exc: + except Exception as exc: # skipcq: PYL-W0703 res_queue.put(exc) @@ -301,7 +301,7 @@ def _calls_delete_cache(res_queue, del_cache): os.remove(_DEL_CACHE_FPATH) # print(os.path.isfile(_DEL_CACHE_FPATH)) res_queue.put(res) - except Exception as exc: + except Exception as exc: # skipcq: PYL-W0703 # print('found') res_queue.put(exc)