From deaf704bc5c6f7cef4d7d7c1597ce4df0eb4d794 Mon Sep 17 00:00:00 2001 From: Salvatore Ingala <6681844+bigspider@users.noreply.github.com> Date: Fri, 11 Oct 2019 17:54:40 +0700 Subject: [PATCH] Removed redundant parentheses --- pisa/watcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pisa/watcher.py b/pisa/watcher.py index 91b4aab..10dc7a6 100644 --- a/pisa/watcher.py +++ b/pisa/watcher.py @@ -67,7 +67,7 @@ class Watcher: logger.info("New appointment accepted.", locator=appointment.locator) - if (self.signing_key is not None): + if self.signing_key is not None: signature = self.signing_key.sign(appointment.to_json().encode('utf8')) else: @@ -75,7 +75,7 @@ class Watcher: logger.info("Maximum appointments reached, appointment rejected.", locator=appointment.locator) - return (appointment_added, signature) + return appointment_added, signature def do_subscribe(self): self.zmq_subscriber = ZMQHandler(parent="Watcher")