joshmarshall / jsonrpclib

A Python JSON-RPC over HTTP that mirrors xmlrpclib syntax.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MultiCallIterator incorrectly raises StopIteration

lonetech opened this issue · comments

The __iter__ method in MultiCallIterator is a generator, using the yield statement to produce results. As such it should simply return in the end, not raise any exception. Just remove the raise StopIteration line to correct this bug.
In addition, the entire method is unnecessary, as iter() can derive it from __len__ and __getitem__.