environment/lib/python2.7/site-packages/nose/inspector.py
def find_inspectable_lines(lines, pos):
    """Find lines in home that are inspectable.
    
    Walk back from the err line up to 3 lines, but don't walk back over
    changes in indent level.

    Walk forward up to 3 lines, counting \ separated lines as 1. Don't walk
    over changes in indent level (unless part of an extended line)
    """
    cnt = re.compile(r'\\[\s\n]*$')
    df = re.compile(r':[\s\n]*$')
    ind = re.compile(r'^(\s*)')
    toinspect = []
    home = lines[pos]
    home_indent = ind.match(home).groups()[0]
    
    before = lines[max(pos-3, 0):pos]
    before.reverse()
    after = lines[pos+1:min(pos+4, len(lines))]

    for line in before:
        if ind.match(line).groups()[0] == home_indent:
            toinspect.append(line)
        else:
            break
    toinspect.reverse()
    toinspect.append(home)
    home_pos = len(toinspect)-1
    continued = cnt.search(home)
    for line in after:
        if ((continued or ind.match(line).groups()[0] == home_indent)
            and not df.search(line)):
            toinspect.append(line)
            continued = cnt.search(line)
        else:
            break
    log.debug("Inspecting lines '''%s''' around %s", toinspect, home_pos)
    return toinspect, home_pos
def find_inspectable_lines(lines, pos):
    cnt = re.compile(r'\\[\s\n]*$')
    df = re.compile(r':[\s\n]*$')
    ind = re.compile(r'^(\s*)')
    toinspect = []
    home = lines[pos]
    home_indent = ind.match(home).groups()[0]
    
    before = lines[max(pos-3, 0):pos]
    before.reverse()
    after = lines[pos+1:min(pos+4, len(lines))]

    for line in before:
        if ind.match(line).groups()[0] == home_indent:
            toinspect.append(line)
        else:
            break
    toinspect.reverse()
    toinspect.append(home)
    home_pos = len(toinspect)-1
    continued = cnt.search(home)
    for line in after:
        if ((continued or ind.match(line).groups()[0] == home_indent)
            and not df.search(line)):
            toinspect.append(line)
            continued = cnt.search(line)
        else:
            break
    log.debug("Inspecting lines '''%s''' around %s", toinspect, home_pos)
    return toinspect, home_pos
def find_inspectable_lines ( lines , pos ) : cnt = re . compile ( r'\\[\s\n]*$' ) df = re . compile ( r':[\s\n]*$' ) ind = re . compile ( r'^(\s*)' ) toinspect = [ ] home = lines [ pos ] home_indent = ind . match ( home ) . groups ( ) [ 0 ] before = lines [ max ( pos - 3 , 0 ) : pos ] before . reverse ( ) after = lines [ pos + 1 : min ( pos + 4 , len ( lines ) ) ] for line in before : if ind . match ( line ) . groups ( ) [ 0 ] == home_indent : toinspect . append ( line ) else : break toinspect . reverse ( ) toinspect . append ( home ) home_pos = len ( toinspect ) - 1 continued = cnt . search ( home ) for line in after : if ( ( continued or ind . match ( line ) . groups ( ) [ 0 ] == home_indent ) and not df . search ( line ) ) : toinspect . append ( line ) continued = cnt . search ( line ) else : break log . debug ( "Inspecting lines '''%s''' around %s" , toinspect , home_pos ) return toinspect , home_pos
Find lines in home that are inspectable.
    
    Walk back from the err line up to 3 lines, but don't walk back over
    changes in indent level.

    Walk forward up to 3 lines, counting \ separated lines as 1. Don't walk
    over changes in indent level (unless part of an extended line)
Find lines in home that are inspectable . Walk back from the err line up to 3 lines but don t walk back over changes in indent level .