]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix for bug #432384: Recursion in PyString_AsEncodedString?
authorMarc-André Lemburg <mal@egenix.com>
Tue, 12 Jun 2001 13:14:10 +0000 (13:14 +0000)
committerMarc-André Lemburg <mal@egenix.com>
Tue, 12 Jun 2001 13:14:10 +0000 (13:14 +0000)
Objects/stringobject.c

index da49d814f756adf16abd7fa3724a6a4d6d0bdc4a..bcf51474ec4d80b8aee5422c137939a1a5a35968 100644 (file)
@@ -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;