mirror of https://github.com/python/cpython
Remove dead code from tracemalloc (GH-21029)
tracemalloc_get_frame() checked filename == NULL two times in a row. Signed-off-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
20a7902175
commit
9cfcdb7d6e
|
@ -319,10 +319,6 @@ tracemalloc_get_frame(PyFrameObject *pyframe, frame_t *frame)
|
|||
return;
|
||||
}
|
||||
|
||||
assert(filename != NULL);
|
||||
if (filename == NULL)
|
||||
return;
|
||||
|
||||
if (!PyUnicode_Check(filename)) {
|
||||
#ifdef TRACE_DEBUG
|
||||
tracemalloc_error("filename is not a unicode string");
|
||||
|
|
Loading…
Reference in New Issue