/usr/share/pyshared/jsb/utils/xmpp.py is in jsonbot 0.84.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # jsb/utils/xmpp.py
#
#
""" XMPP related helper functions. """
def stripped(userhost):
""" strip resource from userhost. """
return userhost.split('/')[0]
def resource(userhost):
""" return resource of userhost. """
try: return userhost.split('/')[1]
except (IndexError, ValueError): return ""
|