forked from TrueCloudLab/certificates
Use super().__init__()
This commit is contained in:
parent
238657ce3a
commit
f04e6fdff7
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ key_file = '/var/run/autocert.step.sm/site.key'
|
||||||
class RenewHandler(FileSystemEventHandler):
|
class RenewHandler(FileSystemEventHandler):
|
||||||
def __init__(self, ctx):
|
def __init__(self, ctx):
|
||||||
self.ctx = ctx
|
self.ctx = ctx
|
||||||
super()
|
super().__init__()
|
||||||
|
|
||||||
def on_modified(self, event):
|
def on_modified(self, event):
|
||||||
logging.info("reloading certs ...")
|
logging.info("reloading certs ...")
|
||||||
|
@ -30,7 +30,7 @@ class RenewHandler(FileSystemEventHandler):
|
||||||
# RenewHandler when a file is modified.
|
# RenewHandler when a file is modified.
|
||||||
class Monitor(threading.Thread):
|
class Monitor(threading.Thread):
|
||||||
def __init__(self, handler, path):
|
def __init__(self, handler, path):
|
||||||
threading.Thread.__init__(self)
|
super().__init__()
|
||||||
self.handler = handler
|
self.handler = handler
|
||||||
self.path = path
|
self.path = path
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue