mirror of
https://github.com/gryf/pythonhelper.git
synced 2025-12-18 20:10:24 +01:00
Continue refactoring towards an iterator.
This commit is contained in:
@@ -376,6 +376,10 @@ class SimplePythonTagsParser(object):
|
|||||||
|
|
||||||
|
|
||||||
def vimBufferIterator(vimBuffer):
|
def vimBufferIterator(vimBuffer):
|
||||||
|
for line in vimBuffer:
|
||||||
|
yield line + "\n"
|
||||||
|
|
||||||
|
def vimBufferIterator2(vimBuffer):
|
||||||
buf = VimReadlineBuffer(vimBuffer)
|
buf = VimReadlineBuffer(vimBuffer)
|
||||||
while True:
|
while True:
|
||||||
line = buf.readline()
|
line = buf.readline()
|
||||||
|
|||||||
Reference in New Issue
Block a user