stanzabase: Remove python2 legacy.
This commit is contained in:
parent
ad0dc33df9
commit
8c09d932c8
1 changed files with 0 additions and 9 deletions
|
@ -1291,15 +1291,6 @@ class ElementBase(object):
|
||||||
|
|
||||||
def __bool__(self):
|
def __bool__(self):
|
||||||
"""Stanza objects should be treated as True in boolean contexts.
|
"""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
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue