Reformat offlineimap/ui/debuglock.py
Add some spaces, remove lines,... now format is better (lintian).
This commit is contained in:
parent
1b385dfafb
commit
9aa2344fd4
@ -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())))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user