Removed no longer compatibility thingy for Python 3

This commit is contained in:
2017-03-03 12:32:21 +01:00
parent bced6cae68
commit 4e138d38a1

View File

@@ -148,11 +148,9 @@ def gravatar(email, size=64):
"?" + urllib.parse.urlencode(parameters)
class MetaFalsey(type):
def __bool__(cls):
return False
__bool__ = __nonzero__ # for Python 3
class DoesNotExist(object, metaclass=MetaFalsey):