Removed no longer compatibility thingy for Python 3
This commit is contained in:
parent
b454b011b0
commit
82157af84b
@ -148,11 +148,9 @@ def gravatar(email, size=64):
|
|||||||
"?" + urllib.parse.urlencode(parameters)
|
"?" + urllib.parse.urlencode(parameters)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class MetaFalsey(type):
|
class MetaFalsey(type):
|
||||||
def __bool__(cls):
|
def __bool__(cls):
|
||||||
return False
|
return False
|
||||||
__bool__ = __nonzero__ # for Python 3
|
|
||||||
|
|
||||||
|
|
||||||
class DoesNotExist(object, metaclass=MetaFalsey):
|
class DoesNotExist(object, metaclass=MetaFalsey):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user