From 472476db6ff9028b3fa9cdda3d636ffe0521d2da Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Wed, 2 Mar 2011 12:35:09 +0100 Subject: [PATCH] Remove over-verbose debug options The debug output for dequote, optionsplit is very verbose, outputing what the functions are called with and what they return. Those functions are now very old mature and rather simple, so it suffices to output their return value rather than cluttering out log with too much uninteresting garbarge. This makes log files much more readable. Signed-off-by: Sebastian Spaeth Signed-off-by: Nicolas Sebrecht --- offlineimap/imaputil.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/offlineimap/imaputil.py b/offlineimap/imaputil.py index fe74854..c59f1f5 100644 --- a/offlineimap/imaputil.py +++ b/offlineimap/imaputil.py @@ -31,7 +31,6 @@ def dequote(string): This function does NOT consider parenthised lists to be quoted. """ - debug("dequote() called with input:", string) if not (string[0] == '"' and string[-1] == '"'): return string string = string[1:-1] # Strip off quotes. @@ -46,7 +45,6 @@ def flagsplit(string): return imapsplit(string[1:-1]) def options2hash(list): - debug("options2hash called with input:", list) retval = {} counter = 0 while (counter < len(list)): @@ -68,7 +66,6 @@ def imapsplit(imapstring): ['(\\HasNoChildren)', '"."', '"INBOX.Sent"']""" - debug("imapsplit() called with input:", imapstring) if type(imapstring) != types.StringType: debug("imapsplit() got a non-string input; working around.") # Sometimes, imaplib will throw us a tuple if the input