mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-43950: check against the raw string, not the pyobject (GH-27337)
This commit is contained in:
parent
8158e059e9
commit
ef8b8535cb
1 changed files with 1 additions and 1 deletions
|
@ -605,7 +605,7 @@ extract_anchors_from_line(PyObject *filename, PyObject *line,
|
|||
}
|
||||
|
||||
const char *segment_str = PyUnicode_AsUTF8(segment);
|
||||
if (!segment) {
|
||||
if (!segment_str) {
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue