Tim Graham added the comment:

And on further investigation, I'm not sure how to fix the deprecation warnings 
in Django. We have a urlpattern like this:

  url(r'^(?i)CaseInsensitive/(\w+)', empty_view, name="insensitive"),

The regex string r'^(?i)CaseInsensitive/(\w+)' is later substituted in this 
line in Django's URL resolver as the `pattern`:

if re.search('^%s%s' % (re.escape(_prefix), pattern), candidate_pat % 
candidate_subs, re.UNICODE):

It seems Django would need to extract any flags from `pattern` and put them at 
the start of the '^%s%s' string that's constructed for re.search(). I'm not 
sure if this can be done easily.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22493>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to