ui/UIBase.py do not use builtin type as variable
Renamed from type to rtype.
This commit is contained in:
parent
833816cf62
commit
d5ab101cf4
@ -436,11 +436,11 @@ class UIBase:
|
|||||||
else:
|
else:
|
||||||
self.logger.info("Collecting data from messages on %s" % source)
|
self.logger.info("Collecting data from messages on %s" % source)
|
||||||
|
|
||||||
def serverdiagnostics(self, repository, type):
|
def serverdiagnostics(self, repository, rtype):
|
||||||
"""Connect to repository and output useful information for debugging."""
|
"""Connect to repository and output useful information for debugging."""
|
||||||
|
|
||||||
conn = None
|
conn = None
|
||||||
self._msg("%s repository '%s': type '%s'" % (type, repository.name,
|
self._msg("%s repository '%s': type '%s'" % (rtype, repository.name,
|
||||||
self.getnicename(repository)))
|
self.getnicename(repository)))
|
||||||
try:
|
try:
|
||||||
if hasattr(repository, 'gethost'): # IMAP
|
if hasattr(repository, 'gethost'): # IMAP
|
||||||
@ -461,7 +461,7 @@ class UIBase:
|
|||||||
self._msg("Server welcome string: %s" % str(conn.welcome))
|
self._msg("Server welcome string: %s" % str(conn.welcome))
|
||||||
self._msg("Server capabilities: %s\n" % str(conn.capabilities))
|
self._msg("Server capabilities: %s\n" % str(conn.capabilities))
|
||||||
repository.imapserver.releaseconnection(conn)
|
repository.imapserver.releaseconnection(conn)
|
||||||
if type != 'Status':
|
if rtype != 'Status':
|
||||||
folderfilter = repository.getconf('folderfilter', None)
|
folderfilter = repository.getconf('folderfilter', None)
|
||||||
if folderfilter:
|
if folderfilter:
|
||||||
self._msg("folderfilter= %s\n" % folderfilter)
|
self._msg("folderfilter= %s\n" % folderfilter)
|
||||||
|
Loading…
Reference in New Issue
Block a user