mirror of
https://github.com/django/django.git
synced 2025-09-22 10:12:43 +00:00
Fixed #26125 -- Fixed E731 flake warnings.
This commit is contained in:
parent
abc0777b63
commit
60586dd737
36 changed files with 176 additions and 75 deletions
|
@ -19,7 +19,8 @@ if six.PY2:
|
|||
|
||||
|
||||
# Capitalizes the first letter of a string.
|
||||
capfirst = lambda x: x and force_text(x)[0].upper() + force_text(x)[1:]
|
||||
def capfirst(x):
|
||||
return x and force_text(x)[0].upper() + force_text(x)[1:]
|
||||
capfirst = keep_lazy_text(capfirst)
|
||||
|
||||
# Set up regular expressions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue