[PATCH 4/6] init.py: avoid redefining "type" builtin

Nicolas Sebrecht nicolas.s-dev at laposte.net
Thu Jan 8 23:03:19 GMT 2015


Signed-off-by: Nicolas Sebrecht <nicolas.s-dev at laposte.net>
---
 offlineimap/init.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/offlineimap/init.py b/offlineimap/init.py
index 143287b..6ceb860 100644
--- a/offlineimap/init.py
+++ b/offlineimap/init.py
@@ -257,10 +257,10 @@ class OfflineImap:
                 options.singlethreading = True
 
             debugtypes = options.debugtype.split(',') + ['']
-            for type in debugtypes:
-                type = type.strip()
-                self.ui.add_debug(type)
-                if type.lower() == 'imap':
+            for dtype in debugtypes:
+                dtype = dtype.strip()
+                self.ui.add_debug(dtype)
+                if dtype.lower() == u'imap':
                     imaplib.Debug = 5
 
         if options.runonce:
-- 
2.2.1





More information about the OfflineIMAP-project mailing list