mirror of
https://github.com/django/django.git
synced 2025-09-21 18:00:45 +00:00
Fixed #21270 -- Fixed E701 pep8 warnings
This commit is contained in:
parent
650b6fd90e
commit
eb214452c3
78 changed files with 625 additions and 285 deletions
|
@ -234,8 +234,10 @@ def get_text_list(list_, last_word=ugettext_lazy('or')):
|
|||
>>> get_text_list([])
|
||||
''
|
||||
"""
|
||||
if len(list_) == 0: return ''
|
||||
if len(list_) == 1: return force_text(list_[0])
|
||||
if len(list_) == 0:
|
||||
return ''
|
||||
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]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue