Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
8847d2f3 by lovetox at 2021-02-28T11:02:53+01:00
Protocol: Remove deprecated JID methods
- - - - -
1 changed file:
- nbxmpp/protocol.py
Changes:
=====================================
nbxmpp/protocol.py
=====================================
@@ -741,57 +741,10 @@ class JID(namedtuple('JID',
return f'{localpart}@{self.domain}{domain_encoded}'
return f'{localpart}@{self.domain}/{self.resource}{domain_encoded}'
- def bareMatch(self, other):
- deprecation_warning('bareMatch() is deprected use bare_match()')
- return self.bare_match(other)
-
- @property
- def isBare(self):
- deprecation_warning('isBare() is deprected use '
- 'the attribute is_bare')
- return self.is_bare
-
- @property
- def isDomain(self):
- deprecation_warning('isDomain() is deprected use '
- 'the attribute is_domain')
- return self.is_domain
-
- @property
- def isFull(self):
- deprecation_warning('isFull() is deprected use '
- 'the attribute is_full')
- return self.is_full
-
def copy(self):
deprecation_warning('copy() is not needed, JID is immutable')
return self
- def getNode(self):
- deprecation_warning('getNode() is deprected use '
- 'the attribute localpart')
- return self.localpart
-
- def getDomain(self):
- deprecation_warning('getDomain() is deprected use '
- 'the attribute domain')
- return self.domain
-
- def getResource(self):
- deprecation_warning('getResource() is deprected use '
- 'the attribute resource')
- return self.resource
-
- def getStripped(self):
- deprecation_warning('getStripped() is deprected use '
- 'the attribute bare')
- return self.bare
-
- def getBare(self):
- deprecation_warning('getBare() is deprected use '
- 'the attribute bare')
- return self.bare
-
class StreamErrorNode(Node):
def __init__(self, node):
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/8847d2f3b81ed3f2a12d5e1fab9839cf106be824
--
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/8847d2f3b81ed3f2a12d5e1fab9839cf106be824
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits