summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Tamlyn <marc.tamlyn@gmail.com>2013-12-22 19:22:37 +0000
committerMarc Tamlyn <marc.tamlyn@gmail.com>2013-12-22 19:43:29 +0000
commitb4a11f2720fbbb47f7c03a5a00b3cfb334266a92 (patch)
tree5b3fdf156072db5039252f07d3534b12dcd0bc04
parent3a30b9c5755baca0cf74d68cf5218dc6a49c29c9 (diff)
Fixed #21651 -- Remove recapitalize.
It was not used inside Django, is not tested or documented. Consequently remove without deprecation path. Thanks to @vajrasky for bringing it to our attention.
-rw-r--r--django/utils/text.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/django/utils/text.py b/django/utils/text.py
index d172dc91f8..f44a364f5f 100644
--- a/django/utils/text.py
+++ b/django/utils/text.py
@@ -256,15 +256,6 @@ def normalize_newlines(text):
normalize_newlines = allow_lazy(normalize_newlines, six.text_type)
-def recapitalize(text):
- """Recapitalizes text, placing caps after end-of-sentence punctuation."""
- text = force_text(text).lower()
- capsRE = re.compile(r'(?:^|(?<=[\.\?\!] ))([a-z])')
- text = capsRE.sub(lambda x: x.group(1).upper(), text)
- return text
-recapitalize = allow_lazy(recapitalize)
-
-
def phone2numeric(phone):
"""Converts a phone number with letters into its numeric equivalent."""
char2number = {'a': '2', 'b': '2', 'c': '2', 'd': '3', 'e': '3', 'f': '3',