init.py: avoid redefining "type" builtin

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2015-01-08 22:14:43 +01:00
parent 11619faf7c
commit 0dc45e421b

View File

@ -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: