Reverting changes made in r48030 by Campbell's request

This commit is contained in:
Sergey Sharybin 2012-06-18 13:46:57 +00:00
parent 2c3165fdc0
commit fc5df9d634

@ -384,10 +384,7 @@ const char *PyC_UnicodeAsByte(PyObject *py_str, PyObject **coerce)
else {
PyErr_Clear();
if (py_str == Py_None) {
return NULL;
}
else if (PyBytes_Check(py_str)) {
if (PyBytes_Check(py_str)) {
return PyBytes_AS_STRING(py_str);
}
else if ((*coerce = PyUnicode_EncodeFSDefault(py_str))) {