diff options
author | Дилян Палаузов <Dilyan.Palauzov@db.com> | 2018-01-12 09:05:16 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2018-01-12 12:44:50 -0500 |
commit | a38ae914d89809aed6d79337b74a8b31b6d3849a (patch) | |
tree | 42a8465e37fc02b70d8d3f876d23947acb1a2455 /django/utils/regex_helper.py | |
parent | 4bcec02368b7e5466f64dc17286689b16613c94b (diff) | |
download | django-a38ae914d89809aed6d79337b74a8b31b6d3849a.tar.gz |
Fixed #28996 -- Simplified some boolean constructs and removed trivial continue statements.
Diffstat (limited to 'django/utils/regex_helper.py')
-rw-r--r-- | django/utils/regex_helper.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/utils/regex_helper.py b/django/utils/regex_helper.py index b06acb0191..8d55a79272 100644 --- a/django/utils/regex_helper.py +++ b/django/utils/regex_helper.py @@ -176,8 +176,7 @@ def normalize(pattern): if consume_next: ch, escaped = next(pattern_iter) - else: - consume_next = True + consume_next = True except StopIteration: pass except NotImplementedError: |