From 45d5d2dcaa72aa60a2ad2b8d7f0f299b8410b314 Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Sat, 21 Oct 2017 15:42:25 +0200 Subject: Removed unnecessary tuple()/list() calls. --- django/utils/translation/trans_real.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'django/utils') 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: -- cgit v1.3