Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

        def code_blocks(code, line=None):
    module = ast.parse(code)
    code_map = CodeMap()
    cv = ClassVisitor(code_map)
    cv.visit(module)
    return sorted(list(code_map.for_line(line)), key=lambda block: block.span)
        


src/e/y/eyeball-0.0.5/eyeball/__init__.py   eyeball(Download)
#!/usr/bin/env python
# encoding: utf-8
from __future__ import absolute_import, division, print_function, unicode_literals
 
from .core import code_blocks, CodeBlock