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 JelleZijlstra
Recipients JelleZijlstra, ezio.melotti, serhiy.storchaka
Date 2017-07-10.23:27:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1499729275.42.0.384122493933.issue30896@psf.upfronthosting.co.za>
In-reply-to
Content
This code in sre_parse (line 738 and down):

                            warnings.warn(
                                'Flags not at the start of the expression %s%s' % (
                                    source.string[:20],  # truncate long regexes
                                    ' (truncated)' if len(source.string) > 20 else '',
                                ),
                                DeprecationWarning, stacklevel=7
                            )


triggers a BytesWarning if you do `_line_re = re.compile(br'^(.*?)$(?m)')`.

The fix should be simple; I can try to get a PR in over the next few days.
History
Date User Action Args
2017-07-10 23:27:55JelleZijlstrasetrecipients: + JelleZijlstra, ezio.melotti, serhiy.storchaka
2017-07-10 23:27:55JelleZijlstrasetmessageid: <1499729275.42.0.384122493933.issue30896@psf.upfronthosting.co.za>
2017-07-10 23:27:55JelleZijlstralinkissue30896 messages
2017-07-10 23:27:55JelleZijlstracreate