mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Correct some value converting strangenesses.
This commit is contained in:
parent
162997efb1
commit
2cfaa34dfa
4 changed files with 7 additions and 7 deletions
|
@ -644,7 +644,7 @@ binascii_rledecode_hqx(PyObject *self, PyObject *args)
|
|||
|
||||
/* Empty string is a special case */
|
||||
if ( in_len == 0 )
|
||||
return Py_BuildValue("s", "");
|
||||
return PyString_FromString("");
|
||||
|
||||
/* Allocate a buffer of reasonable size. Resized when needed */
|
||||
out_len = in_len*2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue