Issue30605
Created on 2017-06-09 00:48 by Roy Williams, last changed 2017-06-15 14:18 by serhiy.storchaka. This issue is now closed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 2016 | merged | Roy Williams, 2017-06-09 01:02 | |
| PR 2214 | merged | serhiy.storchaka, 2017-06-15 13:21 | |
| Messages (4) | |||
|---|---|---|---|
| msg295473 - (view) | Author: Roy Williams (Roy Williams) * | Date: 2017-06-09 00:48 | |
import re re.compile(br'^(.*?)$(?m)') |
|||
| msg295474 - (view) | Author: Roy Williams (Roy Williams) * | Date: 2017-06-09 00:50 | |
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
```
|
|||
| msg295612 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * | Date: 2017-06-10 05:01 | |
New changeset 171b9a354e816eebc6d4c3a8553303942e9c5025 by Serhiy Storchaka (Roy Williams) in branch 'master': bpo-30605: Fix compiling binary regexs with BytesWarnings enabled. (#2016) https://github.com/python/cpython/commit/171b9a354e816eebc6d4c3a8553303942e9c5025 |
|||
| msg296090 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * | Date: 2017-06-15 13:55 | |
New changeset 523a243840feb4d5f444a1b128e540876afac3d2 by Serhiy Storchaka in branch '3.6': [3.6] bpo-30605: Fix compiling binary regexs with BytesWarnings enabled. (GH-2016) (#2214) https://github.com/python/cpython/commit/523a243840feb4d5f444a1b128e540876afac3d2 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2017-06-15 14:18:21 | serhiy.storchaka | set | status: open -> closed resolution: fixed stage: backport needed -> resolved |
| 2017-06-15 13:55:24 | serhiy.storchaka | set | messages: + msg296090 |
| 2017-06-15 13:21:43 | serhiy.storchaka | set | pull_requests: + pull_request2258 |
| 2017-06-10 05:03:19 | serhiy.storchaka | set | stage: patch review -> backport needed |
| 2017-06-10 05:01:18 | serhiy.storchaka | set | messages: + msg295612 |
| 2017-06-09 06:10:49 | serhiy.storchaka | set | assignee: serhiy.storchaka type: behavior |
| 2017-06-09 01:02:37 | Roy Williams | set | pull_requests: + pull_request2081 |
| 2017-06-09 00:50:30 | Roy Williams | set | messages: + msg295474 |
| 2017-06-09 00:48:51 | Roy Williams | create | |