Did I find the right examples for you? yes no

All Samples(16)  |  Call(12)  |  Derive(0)  |  Import(4)

        def line_is_empty(iter):
    return iter.is_end() or line_text(iter).strip() == u''
        


src/s/n/snaked-HEAD/snaked/plugins/edit_and_select/smart_select.py   snaked(Download)
from util import (iter_lines, line_is_empty, get_next_not_empty_line, get_whitespace,
    line_text, next_line, prev_line, cursor_on_start_or_end_whitespace, get_line_bounds)
 
def extend_with_gap(from_iter, ws, delta):
    n = None
    for p, n in iter_lines(from_iter, delta):
        if line_is_empty(n):
def extend_without_gap(from_iter, ws, delta):
    n = None
    for p, n in iter_lines(from_iter, delta):
        if line_is_empty(n):
            ne = get_next_not_empty_line(n, delta)
def extend_block_without_gap(from_iter, ws, delta):
    n = None
    for p, n in iter_lines(from_iter, delta):
        if line_is_empty(n):
            ne = get_next_not_empty_line(n, delta)
 
    start_ws = len(get_whitespace(start))
    prev_empty = start.is_start() or line_is_empty(prev_line(start))
    prev_ws = len(get_whitespace(prev_line(start)))
 

src/s/n/snaked-0.4.7/snaked/plugins/edit_and_select/smart_select.py   snaked(Download)
from util import (iter_lines, line_is_empty, get_next_not_empty_line, get_whitespace,
    line_text, next_line, prev_line, cursor_on_start_or_end_whitespace, get_line_bounds)
 
def extend_with_gap(from_iter, ws, delta):
    n = None
    for p, n in iter_lines(from_iter, delta):
        if line_is_empty(n):
def extend_without_gap(from_iter, ws, delta):
    n = None
    for p, n in iter_lines(from_iter, delta):
        if line_is_empty(n):
            ne = get_next_not_empty_line(n, delta)
def extend_block_without_gap(from_iter, ws, delta):
    n = None
    for p, n in iter_lines(from_iter, delta):
        if line_is_empty(n):
            ne = get_next_not_empty_line(n, delta)
 
    start_ws = len(get_whitespace(start))
    prev_empty = start.is_start() or line_is_empty(prev_line(start))
    prev_ws = len(get_whitespace(prev_line(start)))
 

src/s/n/snaked-HEAD/snaked/plugins/edit_and_select/__init__.py   snaked(Download)
def delete_line(editor):
    from util import get_line_bounds, line_is_empty
 
    bounds = get_line_bounds(editor.cursor)
    if not line_is_empty(editor.cursor) and editor.conf['COPY_DELETED_LINE']:

src/s/n/snaked-0.4.7/snaked/plugins/edit_and_select/__init__.py   snaked(Download)
def delete_line(editor):
    from util import get_line_bounds, line_is_empty
 
    bounds = get_line_bounds(editor.cursor)
    if not line_is_empty(editor.cursor) and editor.snaked_conf['COPY_DELETED_LINE']: