https://github.com/python/cpython/commit/536787591a2d18b7b84448edfb04dd695e0a98b0
commit: 536787591a2d18b7b84448edfb04dd695e0a98b0
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2025-10-01T08:58:18+02:00
summary:

Fix typo in tracemalloc.c (#139450)

files:
M Python/tracemalloc.c

diff --git a/Python/tracemalloc.c b/Python/tracemalloc.c
index 7a0853b6a07f55..005bdd378289e7 100644
--- a/Python/tracemalloc.c
+++ b/Python/tracemalloc.c
@@ -230,7 +230,7 @@ tracemalloc_get_frame(_PyInterpreterFrame *pyframe, frame_t 
*frame)
     }
     frame->lineno = (unsigned int)lineno;
 
-    PyObject *filename = filename = _PyFrame_GetCode(pyframe)->co_filename;
+    PyObject *filename = _PyFrame_GetCode(pyframe)->co_filename;
     if (filename == NULL) {
 #ifdef TRACE_DEBUG
         tracemalloc_error("failed to get the filename of the code object");

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to