forked from indymedia/epicyon
Tidying
parent
5b1479a425
commit
044d7f9cbe
10
xmpp.py
10
xmpp.py
|
@ -16,8 +16,9 @@ def getXmppAddress(actorJson: {}) -> str:
|
||||||
for propertyValue in actorJson['attachment']:
|
for propertyValue in actorJson['attachment']:
|
||||||
if not propertyValue.get('name'):
|
if not propertyValue.get('name'):
|
||||||
continue
|
continue
|
||||||
if not (propertyValue['name'].lower().startswith('xmpp') or \
|
nameLower=propertyValue['name'].lower()
|
||||||
propertyValue['name'].lower().startswith('jabber')):
|
if not (nameLower.startswith('xmpp') or \
|
||||||
|
nameLower.startswith('jabber')):
|
||||||
continue
|
continue
|
||||||
if not propertyValue.get('type'):
|
if not propertyValue.get('type'):
|
||||||
continue
|
continue
|
||||||
|
@ -50,8 +51,9 @@ def setXmppAddress(actorJson: {},xmppAddress: str) -> None:
|
||||||
continue
|
continue
|
||||||
if not propertyValue.get('type'):
|
if not propertyValue.get('type'):
|
||||||
continue
|
continue
|
||||||
if not (propertyValue['name'].lower().startswith('xmpp') or \
|
nameLower=propertyValue['name'].lower()
|
||||||
propertyValue['name'].lower().startswith('jabber')):
|
if not (nameLower.startswith('xmpp') or \
|
||||||
|
nameLower.startswith('jabber')):
|
||||||
continue
|
continue
|
||||||
if propertyValue['type']!='PropertyValue':
|
if propertyValue['type']!='PropertyValue':
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue