commit | 2cfaa34dfa2919803a7caf7cfd99aa21d6c40e06 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Mon May 29 19:39:45 2006 +0000 |
committer | Georg Brandl <georg@python.org> | Mon May 29 19:39:45 2006 +0000 |
tree | 68fad69a60835e80f0ed91d3d38ea8e961efd2c3 | |
parent | 162997efb10131868b3dd7bec63f1c89b12ec3a5 [diff] [blame] |
Correct some value converting strangenesses.
diff --git a/Modules/binascii.c b/Modules/binascii.c index 4623b7c..71a9624 100644 --- a/Modules/binascii.c +++ b/Modules/binascii.c
@@ -644,7 +644,7 @@ /* 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;