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

Starting refactor towards an iterator.

This commit is contained in:
cheater
2012-02-08 07:48:02 +01:00
committed by cheater
parent fe86a19e35
commit f323d3cc74

View File

@@ -389,6 +389,9 @@ class SimplePythonTagsParser(object):
# }}}
def vimBufferIterator(vimBuffer):
return VimReadlineBuffer(vimBuffer)
# class VimReadlineBuffer() {{{
class VimReadlineBuffer(object):
# DOC {{{
@@ -508,7 +511,7 @@ def getTags(bufferNumber, changedTick):
# }}}
# get the tags {{{
simpleTagsParser = SimplePythonTagsParser(VimReadlineBuffer(vim.current.buffer))
simpleTagsParser = SimplePythonTagsParser(vimBufferIterator(vim.current.buffer))
tagLineNumbers, tags = simpleTagsParser.getTags()
# }}}