diff options
author | Michael Weiser <michael.weiser@gmx.de> | 2019-05-07 17:59:42 +0000 |
---|---|---|
committer | Michael Weiser <michael.weiser@gmx.de> | 2019-05-09 08:14:56 +0000 |
commit | 1f868015c079aca632adf7c34146b5bc83b7160f (patch) | |
tree | e07b56d8b798bfbc113901c0d36cefae19662a50 /peekaboo | |
parent | 652a0515c9de74bd058b6942857e241237007ad8 (diff) |
Use super() for other Cuckoo classes as well
Switch parent method calling to python3 no-argument version of super()
as we've done with or WhitelistRetry before.
Diffstat (limited to 'peekaboo')
-rw-r--r-- | peekaboo/toolbox/cuckoo.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/peekaboo/toolbox/cuckoo.py b/peekaboo/toolbox/cuckoo.py index bb6ffb3..e5495d3 100644 --- a/peekaboo/toolbox/cuckoo.py +++ b/peekaboo/toolbox/cuckoo.py @@ -47,7 +47,7 @@ from peekaboo.exceptions import CuckooSubmitFailedException logger = logging.getLogger(__name__) -class Cuckoo: +class Cuckoo(object): """ Parent class, defines interface to Cuckoo. """ def __init__(self, job_queue): self.job_queue = job_queue @@ -124,7 +124,7 @@ class CuckooEmbed(Cuckoo): """ Runs and interfaces with Cuckoo in IPC. """ def __init__(self, job_queue, cuckoo_exec, cuckoo_submit, cuckoo_storage, interpreter=None): - Cuckoo.__init__(self, job_queue) + super().__init__(job_queue) self.interpreter = interpreter self.cuckoo_exec = cuckoo_exec self.cuckoo_submit = cuckoo_submit @@ -269,7 +269,7 @@ class CuckooApi(Cuckoo): """ Interfaces with a Cuckoo installation via its REST API. """ def __init__(self, job_queue, url="http://localhost:8090", poll_interval=5, retries=5, backoff=0.5): - Cuckoo.__init__(self, job_queue) + super().__init__(job_queue) self.url = url self.poll_interval = poll_interval |