Skip to content
Snippets Groups Projects
Commit 64eff383 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Py3 fix for geometric algebra non-zero-ness

parent 81f6a0f4
No related branches found
No related tags found
No related merge requests found
......@@ -897,9 +897,11 @@ class MultiVector(object):
return result
def __nonzero__(self):
def __bool__(self):
return bool(self.data)
__nonzero__ = __bool__
def __eq__(self, other):
other = _cast_or_ni(other, self.space)
if other is NotImplemented:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment