Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add comment
  • Loading branch information
methane committed Apr 30, 2025
commit ee1a7f693b74db1bbeeaa39ae13f4bf2f1c1191b
4 changes: 4 additions & 0 deletions Modules/_json.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ escape_unicode(PyObject *pystr)
}

// Take a PyUnicode pystr and write an ASCII-only escaped string to writer.
// Same to ascii_escape_unicode(), but write to PyUnicodeWriter instead of
// return Unicode object.
static int
write_escaped_ascii(PyUnicodeWriter *writer, PyObject *pystr)
{
Expand Down Expand Up @@ -346,6 +348,8 @@ write_escaped_ascii(PyUnicodeWriter *writer, PyObject *pystr)
}

// Take a PyUnicode pystr and write an escaped string to writer.
// Same to escape_unicode(), but write to PyUnicodeWriter instead of
// return Unicode object.
static int
write_escaped_unicode(PyUnicodeWriter *writer, PyObject *pystr)
{
Expand Down
Loading