Fixed #26125 -- Fixed E731 flake warnings.

This commit is contained in:
userimack 2016-01-23 22:17:07 +05:30 committed by Tim Graham
parent abc0777b63
commit 60586dd737
36 changed files with 176 additions and 75 deletions

View file

@ -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