summaryrefslogtreecommitdiff
path: root/django/utils/text.py
diff options
context:
space:
mode:
authoruserimack <mahendra.k12@gmail.com>2016-01-23 22:17:07 +0530
committerTim Graham <timograham@gmail.com>2016-01-25 14:23:43 -0500
commit60586dd7379b295b72d8af4e03423c286913b5e8 (patch)
tree6f834957ea76305fbcda40e23e836077890d36b8 /django/utils/text.py
parentabc0777b63057e2ff97eee2ff184356051e14c47 (diff)
Fixed #26125 -- Fixed E731 flake warnings.
Diffstat (limited to 'django/utils/text.py')
-rw-r--r--django/utils/text.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/utils/text.py b/django/utils/text.py
index af80812a0d..46872372ac 100644
--- a/django/utils/text.py
+++ b/django/utils/text.py
@@ -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