summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/stringobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index da49d81..bcf5147 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -265,7 +265,7 @@ PyObject *PyString_AsEncodedString(PyObject *str,
{
PyObject *v;
- v = PyString_AsEncodedString(str, encoding, errors);
+ v = PyString_AsEncodedObject(str, encoding, errors);
if (v == NULL)
goto onError;