Removed dep on profile

Keywords: 


(jgoerzen@complete.org--projects/offlineimap--head--1.0--patch-8)
This commit is contained in:
John Goerzen
2005-02-10 05:37:33 +01:00
parent 240585f2cc
commit c42ad3ae55
3 changed files with 21 additions and 1 deletions

View File

@ -18,7 +18,7 @@
from threading import *
from StringIO import StringIO
import sys, traceback, thread, profile
import sys, traceback, thread
from offlineimap.ui import UIBase # for getglobalui()
profiledir = None
@ -152,6 +152,7 @@ class ExitNotifyThread(Thread):
if not profiledir: # normal case
Thread.run(self)
else:
import profile
prof = profile.Profile()
try:
prof = prof.runctx("Thread.run(self)", globals(), locals())