diff options
| author | Mads Jensen <mje@inducks.org> | 2017-10-21 15:42:25 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-10-21 09:42:25 -0400 |
| commit | 45d5d2dcaa72aa60a2ad2b8d7f0f299b8410b314 (patch) | |
| tree | 659d883a25ecafa33673dc45052518ff6054cbbe /django | |
| parent | 0f722d865ee556816c36ae6c6bf229904b5142dd (diff) | |
Removed unnecessary tuple()/list() calls.
Diffstat (limited to 'django')
| -rw-r--r-- | django/utils/translation/trans_real.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/translation/trans_real.py b/django/utils/translation/trans_real.py index 1b2472cc10..c640c42a37 100644 --- a/django/utils/translation/trans_real.py +++ b/django/utils/translation/trans_real.py @@ -520,11 +520,11 @@ def parse_accept_lang_header(lang_string): result = [] pieces = accept_language_re.split(lang_string.lower()) if pieces[-1]: - return tuple() + return () for i in range(0, len(pieces) - 1, 3): first, lang, priority = pieces[i:i + 3] if first: - return tuple() + return () if priority: priority = float(priority) else: |
