add comment

This commit is contained in:
Nikos Kouremenos 2005-10-09 16:45:21 +00:00
parent 8bf623f1bc
commit cf18d99555

View file

@ -353,6 +353,7 @@ def from_xs_boolean_to_python_boolean(value):
def ensure_unicode_string(s): def ensure_unicode_string(s):
# py23 u'abc'.decode('utf-8') raises # py23 u'abc'.decode('utf-8') raises
# python24 does not. is python23 is ooold we can remove this func # python24 does not. is python23 is ooold we can remove this func
# FIXME: remove this when we abandon py23
if isinstance(s, str): if isinstance(s, str):
s = s.decode('utf-8') s = s.decode('utf-8')
return s return s
@ -363,6 +364,7 @@ def get_xmpp_show(show):
return show return show
def one_account_connected(): def one_account_connected():
'''returns True if at least one account is connected, else False'''
one_connected = False one_connected = False
accounts = gajim.connections.keys() accounts = gajim.connections.keys()
for acct in accounts: for acct in accounts: