From 8c09d932c8f377a1aff653474a08a59350fc9745 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 3 Oct 2018 14:56:07 +0200 Subject: stanzabase: Remove python2 legacy. --- slixmpp/xmlstream/stanzabase.py | 9 --------- 1 file changed, 9 deletions(-) (limited to 'slixmpp/xmlstream/stanzabase.py') 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 -- cgit v1.2.3