Skip to content

Commit 5e7d239

Browse files
committed
__iter__ yields
1 parent eb08bd6 commit 5e7d239

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bpython/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def __nonzero__(self):
230230
return self.index != -1
231231

232232
def __iter__(self):
233-
return self
233+
yield self
234234

235235
def current(self):
236236
if self.index == -1:

0 commit comments

Comments
 (0)