Commits

Jason R. Coombs committed be37253

Fix issue with _all_ready when sequence is empty.

  • Participants
  • Parent commits 90165fe
  • Branches cherrypy-3.2.x

Comments (0)

Files changed (1)

cherrypy/wsgiserver/wsgiserver2.py

 
     def _all_ready(workers):
         ready_states = [worker.ready for worker in workers]
-        return reduce(operator.and_, ready_states)
+        return reduce(operator.and_, ready_states, True)
     _all_ready = staticmethod(_all_ready)
 
     def shrink(self, amount):