From 2ab51e685530d558aa9c17f08162a6441950e83b Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Thu, 3 Mar 2011 13:44:39 +0100 Subject: [PATCH] Make profiling mode really enforce singlethreading 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 Signed-off-by: Nicolas Sebrecht --- Changelog.draft.rst | 1 + offlineimap/init.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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)