SleekXMPP icon indicating copy to clipboard operation
SleekXMPP copied to clipboard

JID constructor inconsistency

Open indeyets opened this issue 10 years ago • 1 comments

>>> from sleekxmpp.jid import JID
>>> jid1 = JID(local='HELLO', domain='WORLD')
>>> jid1.bare
u'HELLO@world'
>>> jid2 = JID('HELLO@WORLD')
>>> jid2.bare
u'hello@world'

Seems like local-part is not processed when given as separate parameter

indeyets avatar Jan 13 '15 12:01 indeyets

my current local "solution" is:

>>> jid3 = JID(jid1.bare)
>>> jid3.bare
u'hello@world'

indeyets avatar Jan 13 '15 12:01 indeyets