diff options
Diffstat (limited to 'Demo/classes/Rat.py')
-rwxr-xr-x | Demo/classes/Rat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/classes/Rat.py b/Demo/classes/Rat.py index 55543b6..24670b6 100755 --- a/Demo/classes/Rat.py +++ b/Demo/classes/Rat.py @@ -223,7 +223,7 @@ class Rat: return cmp(Rat(a), b) # a != 0 - def __nonzero__(a): + def __bool__(a): return a.__num != 0 # coercion |