Commit 836525ff authored by Stefan Behnel's avatar Stefan Behnel

Py2.4/5 fix

parent 4837f36b
...@@ -58,6 +58,8 @@ except ImportError: ...@@ -58,6 +58,8 @@ except ImportError:
self._dict[key] = value self._dict[key] = value
def __repr__(self): def __repr__(self):
return repr(self._dict) return repr(self._dict)
def __nonzero__(self):
return bool(self._dict)
try: try:
basestring basestring
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment