Browse Source

Convert to Python 3: `object.next` -> `object.__next__`

Alois Mahdal 2 years ago
parent
commit
ae188959b1
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tests/test_hoover.py

+ 1
- 1
tests/test_hoover.py View File

380
             def __iter__(self):
380
             def __iter__(self):
381
                 return self
381
                 return self
382
 
382
 
383
-            def next(self):
383
+            def __next__(self):
384
                 try:
384
                 try:
385
                     item = self.items[self.n]
385
                     item = self.items[self.n]
386
                 except IndexError:
386
                 except IndexError: