Author: christian.heimes
Date: Fri Nov  2 11:23:32 2007
New Revision: 58767

Modified:
   python/branches/py3k-pep3137/Modules/socketmodule.c
Log:
Fixed stack dump in socketmodule

Modified: python/branches/py3k-pep3137/Modules/socketmodule.c
==============================================================================
--- python/branches/py3k-pep3137/Modules/socketmodule.c (original)
+++ python/branches/py3k-pep3137/Modules/socketmodule.c Fri Nov  2 11:23:32 2007
@@ -3659,8 +3659,8 @@
                idna = PyObject_CallMethod(hobj, "encode", "s", "idna");
                if (!idna)
                        return NULL;
-               assert(PyBytes_Check(idna));
-               hptr = PyBytes_AsString(idna);
+               assert(PyString_Check(idna));
+               hptr = PyString_AS_STRING(idna);
        } else if (PyString_Check(hobj)) {
                hptr = PyString_AsString(hobj);
        } else {
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to