Fix multiple typos in var, function and exception names

Signed-off-by: Eygene Ryabinkin <rea@codelabs.ru>
This commit is contained in:
Abdo Roig-Maranges 2014-05-06 23:12:50 +02:00 committed by Eygene Ryabinkin
parent 8dd6f7893c
commit 8c43e52173
5 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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

View File

@ -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." % \

View File

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