From ef8b8535cb3cd705392af9b927d6ff336d98427d Mon Sep 17 00:00:00 2001 From: Batuhan Taskaya Date: Sat, 24 Jul 2021 20:49:17 +0300 Subject: bpo-43950: check against the raw string, not the pyobject (GH-27337) --- Python/traceback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/traceback.c b/Python/traceback.c index 9418236..61e6838 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -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; } -- cgit v0.12