From f04e6fdff7d06d714103e4d17a111425ffd26224 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Wed, 27 Feb 2019 16:32:41 -0800 Subject: [PATCH] Use super().__init__() --- autocert/examples/hello-mtls/py-gunicorn/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autocert/examples/hello-mtls/py-gunicorn/client.py b/autocert/examples/hello-mtls/py-gunicorn/client.py index c8ba3da3..c84963b2 100644 --- a/autocert/examples/hello-mtls/py-gunicorn/client.py +++ b/autocert/examples/hello-mtls/py-gunicorn/client.py @@ -20,7 +20,7 @@ key_file = '/var/run/autocert.step.sm/site.key' class RenewHandler(FileSystemEventHandler): def __init__(self, ctx): self.ctx = ctx - super() + super().__init__() def on_modified(self, event): logging.info("reloading certs ...") @@ -30,7 +30,7 @@ class RenewHandler(FileSystemEventHandler): # RenewHandler when a file is modified. class Monitor(threading.Thread): def __init__(self, handler, path): - threading.Thread.__init__(self) + super().__init__() self.handler = handler self.path = path