forked from bartvdbraak/blender
Reverting changes made in r48030 by Campbell's request
This commit is contained in:
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))) {
|
||||
|
Loading…
Reference in New Issue
Block a user