stanzabase: Remove python2 legacy.

This commit is contained in:
Emmanuel Gil Peyrot 2018-10-03 14:56:07 +02:00
parent ad0dc33df9
commit 8c09d932c8

View file

@ -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