some coding standards

This commit is contained in:
Yann Leboulanger 2009-06-26 19:33:46 +02:00
parent bc4761b0b0
commit 008c98da44
1 changed files with 3 additions and 5 deletions

View File

@ -1781,8 +1781,7 @@ class ChatControl(ChatControlBase):
else:
self.print_conversation(_('No help info for /%s') % command, 'info')
def send_message(self, message, keyID = '', chatstate = None,
xhtml = None):
def send_message(self, message, keyID='', chatstate=None, xhtml=None):
'''Send a message to contact'''
if message in ('', None, '\n') or self._process_command(message):
return None
@ -1846,9 +1845,8 @@ class ChatControl(ChatControlBase):
else:
xep0184_id = None
self.print_conversation(message, self.contact.jid,
encrypted = encrypted, xep0184_id = xep0184_id,
xhtml = xhtml)
self.print_conversation(message, self.contact.jid, encrypted=encrypted,
xep0184_id=xep0184_id, xhtml=xhtml)
ChatControlBase.send_message(self, message, keyID, type_='chat',
chatstate=chatstate_to_send, composing_xep=composing_xep,