jaraco / irc

Full-featured Python IRC library for Python.
MIT License
392 stars 87 forks source link

LineBuffer.__iter__ doesn't return an iterator #7

Closed jaraco closed 8 years ago

jaraco commented 8 years ago

In irc 3.4.1, a bug was introduced whereby the LineBuffer is not returning an iterable:

>>> import irc.client
>>> buf = irc.client.LineBuffer()
>>> buf.feed('foo\n')
>>> for x in buf:
...   print(x)
...
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: iter() returned non-iterator of type 'list'

jaraco commented 8 years ago

Added test and fix for LineBuffer.iter. Fixes #7.

→ <<cset 0850eeb8f13b>>


Original comment by: Jason R. Coombs