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.14:41:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473950497.38.0.478182662544.issue22493@psf.upfronthosting.co.za>
In-reply-to
Content
Could we include the offending pattern in the deprecation message? I'm attaching a proposed patch. With that patch I can more easily find the offending pattern, whereas before I had no idea:

django/django/urls/resolvers.py:101: DeprecationWarning: Flags not at the start of the expression ^(?i)test/2/?$
  compiled_regex = re.compile(regex, re.UNICODE)
History
Date User Action Args
2016-09-15 14:41:37Tim.Grahamsetrecipients: + Tim.Graham, pitrou, ezio.melotti, mrabarnett, python-dev, serhiy.storchaka
2016-09-15 14:41:37Tim.Grahamsetmessageid: <1473950497.38.0.478182662544.issue22493@psf.upfronthosting.co.za>
2016-09-15 14:41:37Tim.Grahamlinkissue22493 messages
2016-09-15 14:41:37Tim.Grahamcreate