summaryrefslogtreecommitdiff
path: root/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to '__init__.py')
-rw-r--r--__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/__init__.py b/__init__.py
index 7b06bb1..2d1324c 100644
--- a/__init__.py
+++ b/__init__.py
@@ -60,8 +60,9 @@ class dictattr(dict):
class nullobject(object):
def __repr__(self):
return '<nullobject>'
- def __nonzero__(self):
+ def __bool__(self):
return False
+ __nonzero__ = __bool__
class tempattr(object):
def __init__(self, obj, attr, value):