Message276562
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. |
|
Date |
User |
Action |
Args |
2016-09-15 15:00:17 | Tim.Graham | set | recipients:
+ Tim.Graham, pitrou, ezio.melotti, mrabarnett, python-dev, serhiy.storchaka |
2016-09-15 15:00:17 | Tim.Graham | set | messageid: <1473951617.81.0.627878059431.issue22493@psf.upfronthosting.co.za> |
2016-09-15 15:00:17 | Tim.Graham | link | issue22493 messages |
2016-09-15 15:00:17 | Tim.Graham | create | |
|