Commit 9fe5483e authored by Philipp Hörist's avatar Philipp Hörist

JID: isDomain and isFull property

parent a1589a5e
Pipeline #4745 passed with stages
in 33 seconds
......@@ -897,6 +897,14 @@ class JID:
def isBare(self):
return self.node and self.domain and not self.resource
@property
def isDomain(self):
return self.domain and not self.node and not self.resource
@property
def isFull(self):
return self.domain and self.node and self.resource
def __eq__(self, other):
"""
Compare the JID to another instance or to string for equality
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment