summaryrefslogtreecommitdiff
path: root/django/utils/regex_helper.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-09-02 21:16:09 -0400
committerTim Graham <timograham@gmail.com>2017-09-22 12:51:18 -0400
commitba42456c2e3f8f63a72b79f7d8c24a296d2cf0fe (patch)
tree7a1f3e4714eaf6a29b7251d8902f689ae09028d6 /django/utils/regex_helper.py
parent5bcca2a056f56b75e6a21670b32b982ef98f422a (diff)
Refs #27648 -- Removed support for (iLmsu) regex groups in url() patterns.
Per deprecation timeline.
Diffstat (limited to 'django/utils/regex_helper.py')
-rw-r--r--django/utils/regex_helper.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/django/utils/regex_helper.py b/django/utils/regex_helper.py
index 9e57ff8f15..b06acb0191 100644
--- a/django/utils/regex_helper.py
+++ b/django/utils/regex_helper.py
@@ -5,10 +5,6 @@ Used internally by Django and not intended for external use.
This is not, and is not intended to be, a complete reg-exp decompiler. It
should be good enough for a large class of URLS, however.
"""
-import warnings
-
-from django.utils.deprecation import RemovedInDjango21Warning
-
# Mapping of an escape character to a representative of that class. So, e.g.,
# "\w" is replaced by "x" in a reverse URL. A value of None means to ignore
# this sequence. Any missing key is mapped to itself.
@@ -121,12 +117,6 @@ def normalize(pattern):
# All of these are ignorable. Walk to the end of the
# group.
walk_to_end(ch, pattern_iter)
- elif ch in 'iLmsu#':
- warnings.warn(
- 'Using (?%s) in url() patterns is deprecated.' % ch,
- RemovedInDjango21Warning
- )
- walk_to_end(ch, pattern_iter)
elif ch == ':':
# Non-capturing group
non_capturing_groups.append(len(result))