spelling
This commit is contained in:
parent
f19ea1d62e
commit
c64b06921b
1 changed files with 51 additions and 51 deletions
|
|
@ -101,7 +101,7 @@ class XEP_0047():
|
|||
failure_cb(sid, file_obj, NS_IBB, failure_reason)
|
||||
|
||||
def getProgress(self, sid, data):
|
||||
"""Fill data with position of current transfert"""
|
||||
"""Fill data with position of current transfer"""
|
||||
try:
|
||||
file_obj = self.current_stream[sid]["file_obj"]
|
||||
data["position"] = str(file_obj.tell())
|
||||
|
|
@ -134,11 +134,11 @@ class XEP_0047():
|
|||
sid = open_elt.getAttribute('sid')
|
||||
stanza = open_elt.getAttribute('stanza', 'iq')
|
||||
if not sid or not block_size or int(block_size)>65535:
|
||||
warning(_("malformed IBB transfert: %s" % IQ['id']))
|
||||
warning(_("malformed IBB transfer: %s" % IQ['id']))
|
||||
self.sendNotAcceptableError(IQ['id'], IQ['from'], xmlstream)
|
||||
return
|
||||
if not sid in self.current_stream:
|
||||
warning(_("Ignoring unexpected IBB transfert: %s" % sid))
|
||||
warning(_("Ignoring unexpected IBB transfer: %s" % sid))
|
||||
self.sendNotAcceptableError(IQ['id'], IQ['from'], xmlstream)
|
||||
return
|
||||
if self.current_stream[sid]["from"] != jid.JID(IQ['from']):
|
||||
|
|
|
|||
Loading…
Reference in a new issue