Reformat offlineimap/ui/debuglock.py

Add some spaces, remove lines,... now format is better (lintian).
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-29 19:55:52 +02:00
parent 1b385dfafb
commit 9aa2344fd4

View File

@ -17,9 +17,11 @@
from threading import Lock, currentThread from threading import Lock, currentThread
import traceback import traceback
logfile = open("/tmp/logfile", "wt") logfile = open("/tmp/logfile", "wt")
loglock = Lock() loglock = Lock()
class DebuggingLock: class DebuggingLock:
def __init__(self, name): def __init__(self, name):
self.lock = Lock() self.lock = Lock()
@ -45,5 +47,3 @@ class DebuggingLock:
self.logmsg(".... %s: Thread %s attempting to %s\n" % \ self.logmsg(".... %s: Thread %s attempting to %s\n" % \
(self.name, currentThread().getName(), msg) + \ (self.name, currentThread().getName(), msg) + \
"\n".join(traceback.format_list(traceback.extract_stack()))) "\n".join(traceback.format_list(traceback.extract_stack())))