1
0
mirror of https://github.com/gryf/pythonhelper.git synced 2025-12-18 12:00:27 +01:00

Continue refactoring towards an iterator.

This commit is contained in:
cheater
2012-02-08 07:59:34 +01:00
committed by cheater
parent ba115f64cc
commit aee6f328aa

View File

@@ -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()