Browse Source

Convert to Python 3: `object.__nonzero__()` -> `object.__bool__()`

Alois Mahdal 2 years ago
parent
commit
769fca920e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      sznqalibs/hoover.py

+ 1
- 1
sznqalibs/hoover.py View File

170
         except ValueError:                      # no, it's something else...
170
         except ValueError:                      # no, it's something else...
171
             return self._item_ok(item)
171
             return self._item_ok(item)
172
 
172
 
173
-    def __nonzero__(self):
173
+    def __bool__(self):
174
         try:
174
         try:
175
             return self._match()
175
             return self._match()
176
         except TypeError:
176
         except TypeError: