[PATCH] Remove over-verbose debug options
Sebastian Spaeth
Sebastian at SSpaeth.de
Wed Mar 2 11:35:09 GMT 2011
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 <Sebastian at SSpaeth.de>
---
offlineimap/imaputil.py | 3 ---
1 files changed, 0 insertions(+), 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
--
1.7.1
More information about the OfflineIMAP-project
mailing list