summaryrefslogtreecommitdiffstats
path: root/Python/tracemalloc.c
diff options
context:
space:
mode:
authorSergey Miryanov <sergey.miryanov@gmail.com>2025-03-03 19:18:09 (GMT)
committerGitHub <noreply@github.com>2025-03-03 19:18:09 (GMT)
commit3a7f17c7e2f72a836a019c316818c446a0c71d75 (patch)
tree195d97d31dc8c6d06088f4a01c9835cc9f0bdf93 /Python/tracemalloc.c
parent8a64a62002fa3cdc93cb4cfee315edb235cad8cb (diff)
downloadcpython-3a7f17c7e2f72a836a019c316818c446a0c71d75.zip
cpython-3a7f17c7e2f72a836a019c316818c446a0c71d75.tar.gz
cpython-3a7f17c7e2f72a836a019c316818c446a0c71d75.tar.bz2
gh-130790: Remove references about unicode's readiness from comments (#130801)
Diffstat (limited to 'Python/tracemalloc.c')
-rw-r--r--Python/tracemalloc.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/Python/tracemalloc.c b/Python/tracemalloc.c
index d69b0eb..1ee040d 100644
--- a/Python/tracemalloc.c
+++ b/Python/tracemalloc.c
@@ -249,14 +249,6 @@ tracemalloc_get_frame(_PyInterpreterFrame *pyframe, frame_t *frame)
#endif
return;
}
- if (!PyUnicode_IS_READY(filename)) {
- /* Don't make a Unicode string ready to avoid reentrant calls
- to tracemalloc_alloc() or tracemalloc_realloc() */
-#ifdef TRACE_DEBUG
- tracemalloc_error("filename is not a ready unicode string");
-#endif
- return;
- }
/* intern the filename */
_Py_hashtable_entry_t *entry;