mirror of
https://github.com/gryf/pythonhelper.git
synced 2026-10-06 06:00:34 +02:00
Continue refactoring towards an iterator.
This commit is contained in:
1 parent
ba115f64cc
commit
aee6f328aa
1 file changed
+4
@@ -376,6 +376,10 @@ class SimplePythonTagsParser(object):
|
||||
|
||||
|
||||
def vimBufferIterator(vimBuffer):
|
||||
for line in vimBuffer:
|
||||
yield line + "\n"
|
||||
|
||||
def vimBufferIterator2(vimBuffer):
|
||||
buf = VimReadlineBuffer(vimBuffer)
|
||||
while True:
|
||||
line = buf.readline()
|
||||
|
||||
Reference in new issue
Block a user