From fd1e54b923871d9596f9692c0fc576cd40ce3e38 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 24 Sep 2015 08:17:40 -0400 Subject: [PATCH] Removed unused views.debug.linebreak_iter() function. --- django/views/debug.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/django/views/debug.py b/django/views/debug.py index b6201ab54a3..1aeb05f7b08 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -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