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):
|
def waitforthread(self):
|
||||||
"""Implements method that waits for thread to be usable.
|
"""Implements method that waits for thread to be usable.
|
||||||
Should be implemented only for folders that suggest threads."""
|
Should be implemented only for folders that suggest threads."""
|
||||||
raise NotImplementedException
|
raise NotImplementedError
|
||||||
|
|
||||||
# XXX: we may need someting like supports_quickstatus() to check
|
# XXX: we may need someting like supports_quickstatus() to check
|
||||||
# XXX: if user specifies 'quick' flag for folder that doesn't
|
# 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)
|
result = self._store_to_imap(imapobj, uid_str, arg, labels_str)
|
||||||
|
|
||||||
except imapobj.readonly:
|
except imapobj.readonly:
|
||||||
self.ui.labelstoreadonly(self, uidlist, data)
|
self.ui.labelstoreadonly(self, uidlist, labels)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
|
@ -715,7 +715,7 @@ class IMAPFolder(BaseFolder):
|
|||||||
result = self._store_to_imap(imapobj, str(uid), 'FLAGS', imaputil.flagsmaildir2imap(flags))
|
result = self._store_to_imap(imapobj, str(uid), 'FLAGS', imaputil.flagsmaildir2imap(flags))
|
||||||
|
|
||||||
except imapobj.readonly:
|
except imapobj.readonly:
|
||||||
self.ui.flagstoreadonly(self, [uid], data)
|
self.ui.flagstoreadonly(self, [uid], flags)
|
||||||
return
|
return
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
|
@ -273,7 +273,7 @@ class MaildirFolder(BaseFolder):
|
|||||||
except OSError as e:
|
except OSError as e:
|
||||||
if e.errno == e.EEXIST:
|
if e.errno == e.EEXIST:
|
||||||
if tries:
|
if tries:
|
||||||
time.slep(0.23)
|
time.sleep(0.23)
|
||||||
continue
|
continue
|
||||||
severity = OfflineImapError.ERROR.MESSAGE
|
severity = OfflineImapError.ERROR.MESSAGE
|
||||||
raise OfflineImapError("Unique filename %s already exists." % \
|
raise OfflineImapError("Unique filename %s already exists." % \
|
||||||
|
@ -276,7 +276,7 @@ class IMAPServer:
|
|||||||
If any authentication method succeeds, routine should exit:
|
If any authentication method succeeds, routine should exit:
|
||||||
warnings for failed methods are to be produced in the
|
warnings for failed methods are to be produced in the
|
||||||
respective except blocks.
|
respective except blocks.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Authentication routines, hash keyed by method name
|
# Authentication routines, hash keyed by method name
|
||||||
@ -489,7 +489,7 @@ class IMAPServer:
|
|||||||
reason = "Connection to host '%s:%d' for repository '%s' was "\
|
reason = "Connection to host '%s:%d' for repository '%s' was "\
|
||||||
"refused. Make sure you have the right host and port "\
|
"refused. Make sure you have the right host and port "\
|
||||||
"configured and that you are actually able to access the "\
|
"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)
|
raise OfflineImapError(reason, severity)
|
||||||
# Could not acquire connection to the remote;
|
# Could not acquire connection to the remote;
|
||||||
# socket.error(last_error) raised
|
# socket.error(last_error) raised
|
||||||
|
Loading…
Reference in New Issue
Block a user