Issue #7 resolved

LineBuffer.__iter__ doesn't return an iterator

Jason R. Coombs
repo owner created an issue

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'

Comments (2)

  1. Log in to comment