comparison src/plugins/plugin_xep_0065.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 49587e170f53
comparison
equal deleted inserted replaced
637:3b02554d4c8b 638:6821fc06a324
501 pass 501 pass
502 502
503 def _timeOut(self, sid, profile): 503 def _timeOut(self, sid, profile):
504 """Delecte current_stream id, called after timeout 504 """Delecte current_stream id, called after timeout
505 @param id: id of client.xep_0065_current_stream""" 505 @param id: id of client.xep_0065_current_stream"""
506 info(_("Socks5 Bytestream: TimeOut reached for id %s [%s]") % (sid, profile)) 506 info(_("Socks5 Bytestream: TimeOut reached for id %(sid)s [%(profile)s]")
507 % {"sid": sid, "profile": profile})
507 self._killId(sid, False, "TIMEOUT", profile) 508 self._killId(sid, False, "TIMEOUT", profile)
508 509
509 def _killId(self, sid, success=False, failure_reason="UNKNOWN", profile=None): 510 def _killId(self, sid, success=False, failure_reason="UNKNOWN", profile=None):
510 """Delete an current_stream id, clean up associated observers 511 """Delete an current_stream id, clean up associated observers
511 @param sid: id of client.xep_0065_current_stream""" 512 @param sid: id of client.xep_0065_current_stream"""