remove duplicate function
This commit is contained in:
parent
ee702b8660
commit
dffb2c308b
|
@ -223,11 +223,6 @@ def get_server_from_jid(jid):
|
||||||
pos = jid.find('@') + 1 # after @
|
pos = jid.find('@') + 1 # after @
|
||||||
return jid[pos:]
|
return jid[pos:]
|
||||||
|
|
||||||
def get_resource_from_jid(jid):
|
|
||||||
tokens = jid.split('/', 1)
|
|
||||||
if len(tokens) > 1:
|
|
||||||
return tokens[1]
|
|
||||||
|
|
||||||
def get_name_and_server_from_jid(jid):
|
def get_name_and_server_from_jid(jid):
|
||||||
name = get_nick_from_jid(jid)
|
name = get_nick_from_jid(jid)
|
||||||
server = get_server_from_jid(jid)
|
server = get_server_from_jid(jid)
|
||||||
|
|
|
@ -382,6 +382,7 @@ if __name__ == '__main__':
|
||||||
# Session Management support
|
# Session Management support
|
||||||
try:
|
try:
|
||||||
import gnome.ui
|
import gnome.ui
|
||||||
|
raise ImportError
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue