diff options
author | Batuhan Taskaya <batuhan@python.org> | 2021-07-24 17:49:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-24 17:49:17 (GMT) |
commit | ef8b8535cb3cd705392af9b927d6ff336d98427d (patch) | |
tree | d38c51f2ffe71c35c1a8ad9e8486e648c1adc9f4 /Python | |
parent | 8158e059e9952f08d19a18d3e9e021cee2393cd2 (diff) | |
download | cpython-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.c | 2 |
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; } |