Remove unused function: django.utils.text.recapitalize
>>> from django.utils.text import recapitalize
>>> recapitalize("first sentence. second sentence? third sentence! FINAL SENTENCE.")
'First sentence. Second sentence? Third sentence! Final sentence.'
All is well, but... maybe not.
>>> recapitalize("first sentence. second sentence?\nthird sentence!")
'First sentence. second sentence?\nthird sentence!'
Change History
(3)
Resolution: |
→ fixed
|
Status: |
new → closed
|
Summary: |
django.utils.text.recapitalize is too dumb (can not handle more than one space, newlines, and tabs) → Remove unused function: django.utils.text.recapitalize
|
Here is the PR to make recapitalize smarter and more useful. https://github.com/django/django/pull/2100