Commit fd1e54b9 authored by Tim Graham's avatar Tim Graham
Browse files

Removed unused views.debug.linebreak_iter() function.

parent a780505f
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -24,15 +24,6 @@ HIDDEN_SETTINGS = re.compile('API|TOKEN|KEY|SECRET|PASS|SIGNATURE')
CLEANSED_SUBSTITUTE = '********************'


def linebreak_iter(template_source):
    yield 0
    p = template_source.find('\n')
    while p >= 0:
        yield p + 1
        p = template_source.find('\n', p + 1)
    yield len(template_source) + 1


class CallableSettingWrapper(object):
    """ Object to wrap callable appearing in settings