diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-09-13 03:31:34 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-09-13 03:31:34 +0000 |
| commit | 84560c7f8457643ccd6e9121994ee54780e28cef (patch) | |
| tree | 9282344dacb3889f2ae794963f1dfc9cc2310f19 /django/utils/text.py | |
| parent | 99e0f7a93275b8384085d3b2b397415e2064b4d7 (diff) | |
Removed Lawrence-specific stuff in utils.text.recapitalize. Refs #467
git-svn-id: http://code.djangoproject.com/svn/django/trunk@638 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils/text.py')
| -rw-r--r-- | django/utils/text.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/django/utils/text.py b/django/utils/text.py index 3185308064..0d6f20a7d6 100644 --- a/django/utils/text.py +++ b/django/utils/text.py @@ -62,13 +62,13 @@ def normalize_newlines(text): def recapitalize(text): "Recapitalizes text, placing caps after end-of-sentence punctuation." - capwords = 'I Jayhawk Jayhawks Lawrence Kansas KS'.split() +# capwords = () text = text.lower() capsRE = re.compile(r'(?:^|(?<=[\.\?\!] ))([a-z])') text = capsRE.sub(lambda x: x.group(1).upper(), text) - for capword in capwords: - capwordRE = re.compile(r'\b%s\b' % capword, re.I) - text = capwordRE.sub(capword, text) +# for capword in capwords: +# capwordRE = re.compile(r'\b%s\b' % capword, re.I) +# text = capwordRE.sub(capword, text) return text def phone2numeric(phone): |
