diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-02 13:12:09 -0700 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-02 13:12:09 -0700 |
| commit | 7548aa8ffd46eb6e0f73730d1b2eb515ba581f95 (patch) | |
| tree | 963393779f4c8c33351ea605f708f8da7d9f70bf /django/utils/regex_helper.py | |
| parent | 65c4ac3b2434d1828cb76c9f4454fe64e81354ee (diff) | |
More attacking E302 violators
Diffstat (limited to 'django/utils/regex_helper.py')
| -rw-r--r-- | django/utils/regex_helper.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/django/utils/regex_helper.py b/django/utils/regex_helper.py index ade1448f27..c8390cc7eb 100644 --- a/django/utils/regex_helper.py +++ b/django/utils/regex_helper.py @@ -26,6 +26,7 @@ ESCAPE_MAPPINGS = { "Z": None, } + class Choice(list): """ Used to represent multiple possibilities at this point in a pattern string. @@ -33,16 +34,19 @@ class Choice(list): code is clear. """ + class Group(list): """ Used to represent a capturing group in the pattern string. """ + class NonCapture(list): """ Used to represent a non-capturing group in the pattern string. """ + def normalize(pattern): """ Given a reg-exp pattern, normalizes it to an iterable of forms that |
