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 <>
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/ DeprecationWarning: Flags not at the start of the expression ^(?i)test/2/?$
  compiled_regex = re.compile(regex, re.UNICODE)
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: <>
2016-09-15 14:41:37Tim.Grahamlinkissue22493 messages
2016-09-15 14:41:37Tim.Grahamcreate