Some errors spoted by file source checkers
This commit is contained in:
		
							parent
							
								
									20ea31ac9e
								
							
						
					
					
						commit
						6775c3a43d
					
				
					 3 changed files with 4 additions and 4 deletions
				
			
		|  | @ -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 | ||||
| 
 | ||||
|  |  | |||
|  | @ -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': | ||||
|  |  | |||
|  | @ -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): | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue