Explorar el Código

ResultSet.__iter__ is now iter(.results)

Ask Solem hace 12 años
padre
commit
ebdec76e99
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/result.py

+ 1 - 1
celery/result.py

@@ -417,7 +417,7 @@ class ResultSet(ResultBase):
                 )
 
     def __iter__(self):
-        return self.iterate()
+        return iter(self.results)
 
     def __getitem__(self, index):
         """`res[i] -> res.results[i]`"""