bpo-43950: check against the raw string, not the pyobject (GH-27337)

This commit is contained in:
Batuhan Taskaya 2021-07-24 20:49:17 +03:00 committed by GitHub
parent 8158e059e9
commit ef8b8535cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}