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 Roy Williams
Recipients Roy Williams, ezio.melotti, mrabarnett
Date 2017-06-09.00:50:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1496969430.93.0.0756716425776.issue30605@psf.upfronthosting.co.za>
In-reply-to
Content
Repro:

```
import re
re.compile(br'^(.*?)$(?m)')
```

Results in
```
Traceback (most recent call last):
  File "test_compile.py", line 2, in <module>
    re.compile(br'^(.*?)$(?m)')
  File "/usr/lib/python3.6/re.py", line 233, in compile
    return _compile(pattern, flags)
  File "/usr/lib/python3.6/re.py", line 301, in _compile
    p = sre_compile.compile(pattern, flags)
  File "/usr/lib/python3.6/sre_compile.py", line 562, in compile
    p = sre_parse.parse(p, flags)
  File "/usr/lib/python3.6/sre_parse.py", line 856, in parse
    p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, False)
  File "/usr/lib/python3.6/sre_parse.py", line 415, in _parse_sub
    itemsappend(_parse(source, state, verbose))
  File "/usr/lib/python3.6/sre_parse.py", line 741, in _parse
    ' (truncated)' if len(source.string) > 20 else '',
BytesWarning: str() on a bytes instance
```
History
Date User Action Args
2017-06-09 00:50:30Roy Williamssetrecipients: + Roy Williams, ezio.melotti, mrabarnett
2017-06-09 00:50:30Roy Williamssetmessageid: <1496969430.93.0.0756716425776.issue30605@psf.upfronthosting.co.za>
2017-06-09 00:50:30Roy Williamslinkissue30605 messages
2017-06-09 00:50:30Roy Williamscreate