Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0047.py @ 638:6821fc06a324
misc: a few "cosmetic" changes (PEP 8...)
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 05 Sep 2013 20:57:00 +0200 |
parents | 84a6e83157c2 |
children | bfabeedbf32e |
comparison
equal
deleted
inserted
replaced
637:3b02554d4c8b | 638:6821fc06a324 |
---|---|
73 client.xep_0047_current_stream = {} # key: stream_id, value: data(dict) | 73 client.xep_0047_current_stream = {} # key: stream_id, value: data(dict) |
74 | 74 |
75 def _timeOut(self, sid, profile): | 75 def _timeOut(self, sid, profile): |
76 """Delecte current_stream id, called after timeout | 76 """Delecte current_stream id, called after timeout |
77 @param id: id of client.xep_0047_current_stream""" | 77 @param id: id of client.xep_0047_current_stream""" |
78 info(_("In-Band Bytestream: TimeOut reached for id %s [%s]") % (sid, profile)) | 78 info(_("In-Band Bytestream: TimeOut reached for id %(sid)s [%(profile)s]") |
79 % {"sid": sid, "profile": profile}) | |
79 self._killId(sid, False, "TIMEOUT", profile) | 80 self._killId(sid, False, "TIMEOUT", profile) |
80 | 81 |
81 def _killId(self, sid, success=False, failure_reason="UNKNOWN", profile=None): | 82 def _killId(self, sid, success=False, failure_reason="UNKNOWN", profile=None): |
82 """Delete an current_stream id, clean up associated observers | 83 """Delete an current_stream id, clean up associated observers |
83 @param sid: id of client.xep_0047_current_stream""" | 84 @param sid: id of client.xep_0047_current_stream""" |