mirror of
https://github.com/django/django.git
synced 2025-09-21 18:00:45 +00:00
Fixed #20989 -- Removed useless explicit list comprehensions.
This commit is contained in:
parent
e4a67fd906
commit
11cd7388f7
75 changed files with 163 additions and 163 deletions
|
@ -238,7 +238,7 @@ def get_text_list(list_, last_word=ugettext_lazy('or')):
|
|||
if len(list_) == 1: return force_text(list_[0])
|
||||
return '%s %s %s' % (
|
||||
# Translators: This string is used as a separator between list elements
|
||||
_(', ').join([force_text(i) for i in list_][:-1]),
|
||||
_(', ').join(force_text(i) for i in list_[:-1]),
|
||||
force_text(last_word), force_text(list_[-1]))
|
||||
get_text_list = allow_lazy(get_text_list, six.text_type)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue