From aee6f328aa195b8f6bcee53eefadf9ccb62b7d05 Mon Sep 17 00:00:00 2001 From: cheater Date: Wed, 8 Feb 2012 07:59:34 +0100 Subject: [PATCH] Continue refactoring towards an iterator. --- plugin/pythonhelper.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/pythonhelper.vim b/plugin/pythonhelper.vim index e7a0357..cba805b 100644 --- a/plugin/pythonhelper.vim +++ b/plugin/pythonhelper.vim @@ -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()