add comment
This commit is contained in:
		
							parent
							
								
									8bf623f1bc
								
							
						
					
					
						commit
						cf18d99555
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -353,6 +353,7 @@ def from_xs_boolean_to_python_boolean(value):
 | 
			
		|||
def ensure_unicode_string(s):
 | 
			
		||||
	# py23 u'abc'.decode('utf-8') raises
 | 
			
		||||
	# python24 does not. is python23 is ooold we can remove this func
 | 
			
		||||
	# FIXME: remove this when we abandon py23
 | 
			
		||||
	if isinstance(s, str):
 | 
			
		||||
		s = s.decode('utf-8')
 | 
			
		||||
	return s
 | 
			
		||||
| 
						 | 
				
			
			@ -363,6 +364,7 @@ def get_xmpp_show(show):
 | 
			
		|||
	return show
 | 
			
		||||
 | 
			
		||||
def one_account_connected():
 | 
			
		||||
	'''returns True if at least one account is connected, else False'''
 | 
			
		||||
	one_connected = False
 | 
			
		||||
	accounts = gajim.connections.keys()
 | 
			
		||||
	for acct in accounts:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue