diff options
| author | Дилян Палаузов <Dilyan.Palauzov@db.com> | 2017-11-29 11:54:34 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-12-04 10:35:23 -0500 |
| commit | d2afa5eb2308e672b6313876856e32e2561b90f3 (patch) | |
| tree | 2b0700e6502222aca614a29497c327640adf2d64 /django/utils/http.py | |
| parent | 3d94ee85005ff658f9419269a6719cbbf7903dab (diff) | |
Fixed #28860 -- Removed unnecessary len() calls.
Diffstat (limited to 'django/utils/http.py')
| -rw-r--r-- | django/utils/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/http.py b/django/utils/http.py index 48dacf4b28..7e4e58229f 100644 --- a/django/utils/http.py +++ b/django/utils/http.py @@ -420,7 +420,7 @@ def limited_parse_qsl(qs, keep_blank_values=False, encoding='utf-8', nv.append('') else: continue - if len(nv[1]) or keep_blank_values: + if nv[1] or keep_blank_values: name = nv[0].replace('+', ' ') name = unquote(name, encoding=encoding, errors=errors) value = nv[1].replace('+', ' ') |
