Tim Graham added the comment:

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)

----------
nosy: +Tim.Graham
Added file: http://bugs.python.org/file44675/better-warning.diff

_______________________________________
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