Some errors spoted by file source checkers

This commit is contained in:
Jean-Marie Traissard 2006-11-20 19:11:31 +00:00
parent 20ea31ac9e
commit 6775c3a43d
3 changed files with 4 additions and 4 deletions

View File

@ -259,7 +259,7 @@ class ChatControlBase(MessageControl):
def _on_send_button_clicked(self, widget):
'''When send button is pressed: send the current message'''
if gajim.connections[self.account].connected < 2: # we are not connected
dialog = dialogs.ErrorDialog(_('A connection is not available'),
dialogs.ErrorDialog(_('A connection is not available'),
_('Your message can not be sent until you are connected.'))
return
message_buffer = self.msg_textview.get_buffer()
@ -465,7 +465,7 @@ class ChatControlBase(MessageControl):
send_message = True
if gajim.connections[self.account].connected < 2: # we are not connected
dialog = dialogs.ErrorDialog(_('A connection is not available'),
dialogs.ErrorDialog(_('A connection is not available'),
_('Your message can not be sent until you are connected.'))
send_message = False

View File

@ -252,7 +252,7 @@ class Node(object):
return self.setAttr(item,val)
def __delitem__(self,item):
""" Deletes node's attribute "item". """
return self.delAttr(item,val)
return self.delAttr(item)
def __getattr__(self,attr):
""" Reduce memory usage caused by T/NT classes - use memory only when needed. """
if attr=='T':

View File

@ -68,7 +68,7 @@ class MessageControl:
# NOTE: Derived classes MUST implement this
pass
def repaint_themed_widgets(self, theme):
def repaint_themed_widgets(self):
pass # NOTE: Derived classes SHOULD implement this
def update_ui(self):