mirror of
https://github.com/django/django.git
synced 2025-09-21 09:49:53 +00:00
Fixed #21302 -- Fixed unused imports and import *.
This commit is contained in:
parent
9f76ea1eaa
commit
36ded01527
116 changed files with 248 additions and 181 deletions
|
@ -15,7 +15,7 @@ from django.utils.safestring import mark_safe
|
|||
if six.PY2:
|
||||
# Import force_unicode even though this module doesn't use it, because some
|
||||
# people rely on it being here.
|
||||
from django.utils.encoding import force_unicode
|
||||
from django.utils.encoding import force_unicode # NOQA
|
||||
|
||||
# Capitalizes the first letter of a string.
|
||||
capfirst = lambda x: x and force_text(x)[0].upper() + force_text(x)[1:]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue