fritzy / SleekXMPP

Python 2.6+/3.1+ XMPP Library
http://groups.google.com/group/sleekxmpp-discussion
Other
1.1k stars 299 forks source link

JID constructor inconsistency #336

Open indeyets opened 9 years ago

indeyets commented 9 years ago
>>> 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 commented 9 years ago

my current local "solution" is:

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