Fix multiple typos in var, function and exception names
Signed-off-by: Eygene Ryabinkin <rea@codelabs.ru>
This commit is contained in:
parent
8dd6f7893c
commit
8c43e52173
@ -104,7 +104,7 @@ class BaseFolder(object):
|
||||
def waitforthread(self):
|
||||
"""Implements method that waits for thread to be usable.
|
||||
Should be implemented only for folders that suggest threads."""
|
||||
raise NotImplementedException
|
||||
raise NotImplementedError
|
||||
|
||||
# XXX: we may need someting like supports_quickstatus() to check
|
||||
# XXX: if user specifies 'quick' flag for folder that doesn't
|
||||
|
@ -203,7 +203,7 @@ class GmailFolder(IMAPFolder):
|
||||
result = self._store_to_imap(imapobj, uid_str, arg, labels_str)
|
||||
|
||||
except imapobj.readonly:
|
||||
self.ui.labelstoreadonly(self, uidlist, data)
|
||||
self.ui.labelstoreadonly(self, uidlist, labels)
|
||||
return None
|
||||
|
||||
finally:
|
||||
|
@ -715,7 +715,7 @@ class IMAPFolder(BaseFolder):
|
||||
result = self._store_to_imap(imapobj, str(uid), 'FLAGS', imaputil.flagsmaildir2imap(flags))
|
||||
|
||||
except imapobj.readonly:
|
||||
self.ui.flagstoreadonly(self, [uid], data)
|
||||
self.ui.flagstoreadonly(self, [uid], flags)
|
||||
return
|
||||
|
||||
finally:
|
||||
|
@ -273,7 +273,7 @@ class MaildirFolder(BaseFolder):
|
||||
except OSError as e:
|
||||
if e.errno == e.EEXIST:
|
||||
if tries:
|
||||
time.slep(0.23)
|
||||
time.sleep(0.23)
|
||||
continue
|
||||
severity = OfflineImapError.ERROR.MESSAGE
|
||||
raise OfflineImapError("Unique filename %s already exists." % \
|
||||
|
@ -489,7 +489,7 @@ class IMAPServer:
|
||||
reason = "Connection to host '%s:%d' for repository '%s' was "\
|
||||
"refused. Make sure you have the right host and port "\
|
||||
"configured and that you are actually able to access the "\
|
||||
"network." % (self.hostname, self.port, self.reposname)
|
||||
"network." % (self.hostname, self.port, self.repos)
|
||||
raise OfflineImapError(reason, severity)
|
||||
# Could not acquire connection to the remote;
|
||||
# socket.error(last_error) raised
|
||||
|
Loading…
Reference in New Issue
Block a user