[PATCH] Make profiling mode really enforce singlethreading

Sebastian Spaeth Sebastian at SSpaeth.de
Thu Mar 3 12:44:39 GMT 2011


A typo was preventing profiling mode to really enable singlethreading
mode. Fixing the unfortunate typo of mine makes it work.

Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
---
Sorry for this typo of mine. I noticed it when trying to profile offlineimap.

 Changelog.draft.rst |    1 +
 offlineimap/init.py |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Changelog.draft.rst b/Changelog.draft.rst
index d9977a2..e754f50 100644
--- a/Changelog.draft.rst
+++ b/Changelog.draft.rst
@@ -21,6 +21,7 @@ Bug Fixes
 
 * Fix regression (UIBase is no more).
 
+* Make profiling mode really enforce single-threading
 
 Pending for the next major release
 ==================================
diff --git a/offlineimap/init.py b/offlineimap/init.py
index 232de25..8aebb23 100644
--- a/offlineimap/init.py
+++ b/offlineimap/init.py
@@ -169,7 +169,7 @@ class OfflineImap:
         if options.profiledir:
             if not options.singlethreading:
                 logging.warn("Profile mode: Forcing to singlethreaded.")
-                options.singlethreaded = True
+                options.singlethreading = True
             profiledir = options.profiledir
             os.mkdir(profiledir)
             threadutil.setprofiledir(profiledir)
-- 
1.7.1





More information about the OfflineIMAP-project mailing list