This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Tim.Graham
Recipients Tim.Graham, ezio.melotti, mrabarnett, pitrou, python-dev, serhiy.storchaka
Date 2016-09-15.15:00:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473951617.81.0.627878059431.issue22493@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-09-15 15:00:17Tim.Grahamsetrecipients: + Tim.Graham, pitrou, ezio.melotti, mrabarnett, python-dev, serhiy.storchaka
2016-09-15 15:00:17Tim.Grahamsetmessageid: <1473951617.81.0.627878059431.issue22493@psf.upfronthosting.co.za>
2016-09-15 15:00:17Tim.Grahamlinkissue22493 messages
2016-09-15 15:00:17Tim.Grahamcreate