We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce6f79c commit e15dd85Copy full SHA for e15dd85
Modules/_zstd/zdict.c
@@ -147,12 +147,8 @@ PyDoc_STRVAR(ZstdDict_dictcontent_doc,
147
static PyObject *
148
ZstdDict_str(ZstdDict *dict)
149
{
150
- char buf[64];
151
- PyOS_snprintf(buf, sizeof(buf),
152
- "<ZstdDict dict_id=%u dict_size=%zd>",
153
- dict->dict_id, Py_SIZE(dict->dict_content));
154
-
155
- return PyUnicode_FromString(buf);
+ return PyUnicode_FromFormat("<ZstdDict dict_id=%u dict_size=%zd>",
+ dict->dict_id, Py_SIZE(dict->dict_content));
156
}
157
158
static PyMemberDef ZstdDict_members[] = {
0 commit comments