Package pyxmpp :: Module jid
[show private | hide private]
[frames | no frames]

Module pyxmpp.jid

jid -- Jabber ID handling

Normative reference:

Classes
JID JID.

Exceptions
JIDError Exception raised when invalid JID is used

Function Summary
  are_domains_equal(a, b)
Compare two International Domain Names.

Variable Summary
str __revision__ = '$Id: jid.py 612 2005-12-26 11:11:32Z jaj...
SRE_Pattern node_invalid_re = ["&'/:<>@\s\x00-\x19]
SRE_Pattern resource_invalid_re = [\s\x00-\x19]

Imported modules:
encodings.idna, re, warnings, weakref
Imported variables:
nodeprep, resourceprep
Function Details

are_domains_equal(a, b)

Compare two International Domain Names.
Parameters:
a - ,`b`: domains names to compare
Returns:
True a and b are equal as domain names.

Variable Details

__revision__

Type:
str
Value:
'$Id: jid.py 612 2005-12-26 11:11:32Z jajcus $'                        

node_invalid_re

Type:
SRE_Pattern
Value:
["&'/:<>@\s\x00-\x19]                                                  

resource_invalid_re

Type:
SRE_Pattern
Value:
[\s\x00-\x19]