]> code.delx.au - offlineimap/blobdiff - offlineimap/threadutil.py
Update FSF address
[offlineimap] / offlineimap / threadutil.py
index 87b8973aa7d1ac707707660eb5450367e7356d9f..665d33413cb754c7b0dde100138c615b3d14424e 100644 (file)
 #
 #    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())