X-Git-Url: https://code.delx.au/offlineimap/blobdiff_plain/d839be3c61888a837bf2de52939eca9831e68dfc..39a18fef6078388dac7a1db386cdfd2900f5263c:/offlineimap/threadutil.py diff --git a/offlineimap/threadutil.py b/offlineimap/threadutil.py index 87b8973..665d334 100644 --- a/offlineimap/threadutil.py +++ b/offlineimap/threadutil.py @@ -14,11 +14,11 @@ # # You should have received a copy of the GNU General Public License # 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 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())