/offlineimap/head: changeset 364

Removed debug code
This commit is contained in:
jgoerzen 2003-03-14 00:47:38 +01:00
parent a09ff54b6e
commit fa51422580

View File

@ -15,8 +15,6 @@
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
DEBUGLOG = open("/tmp/debug", "wt")
from Blinkenlights import BlinkenBase from Blinkenlights import BlinkenBase
from UIBase import UIBase from UIBase import UIBase
from threading import * from threading import *
@ -123,14 +121,8 @@ class CursesUtil:
del self.stdscr del self.stdscr
def reset(self): def reset(self):
DEBUGLOG.write(" in reset...\n")
DEBUGLOG.flush()
self.stop() self.stop()
DEBUGLOG.write(" stop done...\n")
DEBUGLOG.flush()
self.start() self.start()
DEBUGLOG.write(" start done...\n")
DEBUGLOG.flush()
class CursesAccountFrame: class CursesAccountFrame:
def __init__(s, master, accountname): def __init__(s, master, accountname):
@ -334,31 +326,18 @@ class Blinkenlights(BlinkenBase, UIBase):
s.resizeterm() s.resizeterm()
def resizeterm(s, dosleep = 1): def resizeterm(s, dosleep = 1):
DEBUGLOG.write("\nResizeterm called...\n")
DEBUGLOG.write("pid: %d\n" % os.getpid())
if not s.resizelock.acquire(0): if not s.resizelock.acquire(0):
s.resizecount += 1 s.resizecount += 1
DEBUGLOG.write("Already resizing; aborting.\n")
return return
else: else:
DEBUGLOG.write("Got the lock\n")
signal.signal(signal.SIGWINCH, signal.SIG_IGN) signal.signal(signal.SIGWINCH, signal.SIG_IGN)
s.aflock.acquire() s.aflock.acquire()
s.c.lock() s.c.lock()
DEBUGLOG.write("locks acquired...\n")
s.resizecount += 1 s.resizecount += 1
DEBUGLOG.write("at top of try\n")
while s.resizecount: while s.resizecount:
DEBUGLOG.write("in while loop\n")
s.c.reset() s.c.reset()
DEBUGLOG.write("reset done...\n")
DEBUGLOG.write("sleep done...\n")
DEBUGLOG.flush()
s.setupwindows() s.setupwindows()
DEBUGLOG.write("setupwindows done...\n")
s.resizecount -= 1 s.resizecount -= 1
DEBUGLOG.write("exiting while loop...\n")
DEBUGLOG.write("in finally section...\n")
s.c.unlock() s.c.unlock()
s.aflock.release() s.aflock.release()
s.resizelock.release() s.resizelock.release()