You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2017-07-11.02:11:08.731>created_at=<Date2017-07-10.23:27:55.351>labels= ['library']
title='BytesWarning in re module when compiling certain bytes patterns'updated_at=<Date2017-07-11.02:11:08.729>user='https://github.com/JelleZijlstra'
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.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: