summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorBatuhan Taskaya <batuhan@python.org>2021-07-24 17:49:17 (GMT)
committerGitHub <noreply@github.com>2021-07-24 17:49:17 (GMT)
commitef8b8535cb3cd705392af9b927d6ff336d98427d (patch)
treed38c51f2ffe71c35c1a8ad9e8486e648c1adc9f4 /Python
parent8158e059e9952f08d19a18d3e9e021cee2393cd2 (diff)
downloadcpython-ef8b8535cb3cd705392af9b927d6ff336d98427d.zip
cpython-ef8b8535cb3cd705392af9b927d6ff336d98427d.tar.gz
cpython-ef8b8535cb3cd705392af9b927d6ff336d98427d.tar.bz2
bpo-43950: check against the raw string, not the pyobject (GH-27337)
Diffstat (limited to 'Python')
-rw-r--r--Python/traceback.c2
1 files changed, 1 insertions, 1 deletions
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;
}