summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-10-03 14:56:07 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-10-03 14:56:07 +0200
commit8c09d932c8f377a1aff653474a08a59350fc9745 (patch)
tree9b119ab58fdc3b895f75e31221bbd9a1fb2e51db
parentad0dc33df9198384a08fe597489639df455bcbdd (diff)
downloadslixmpp-8c09d932c8f377a1aff653474a08a59350fc9745.tar.gz
slixmpp-8c09d932c8f377a1aff653474a08a59350fc9745.tar.bz2
slixmpp-8c09d932c8f377a1aff653474a08a59350fc9745.tar.xz
slixmpp-8c09d932c8f377a1aff653474a08a59350fc9745.zip
stanzabase: Remove python2 legacy.
-rw-r--r--slixmpp/xmlstream/stanzabase.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/slixmpp/xmlstream/stanzabase.py b/slixmpp/xmlstream/stanzabase.py
index 605dbb61..cebce374 100644
--- a/slixmpp/xmlstream/stanzabase.py
+++ b/slixmpp/xmlstream/stanzabase.py
@@ -1291,15 +1291,6 @@ class ElementBase(object):
def __bool__(self):
"""Stanza objects should be treated as True in boolean contexts.
-
- Python 3.x version.
- """
- return True
-
- def __nonzero__(self):
- """Stanza objects should be treated as True in boolean contexts.
-
- Python 2.x version.
"""
return True