diff options
| author | Tim Graham <timograham@gmail.com> | 2015-09-24 08:17:40 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-09-24 10:41:10 -0400 |
| commit | 566a01e916a0565db5af8dfb5ac9ce2fafc74c66 (patch) | |
| tree | 95c0bc436424781f42774fa02966044cf9dcdc64 | |
| parent | 6c8d36a1abf7da1ea5abfa8ce4dcd8e7b9154e15 (diff) | |
[1.9.x] Removed unused views.debug.linebreak_iter() function.
Backport of fd1e54b923871d9596f9692c0fc576cd40ce3e38 from master
| -rw-r--r-- | django/views/debug.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/django/views/debug.py b/django/views/debug.py index b6201ab54a..1aeb05f7b0 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 |
