Commit 4b051eec authored by Eric Smith's avatar Eric Smith

Corrected assert to check for correct type in py3k.

parent 6057b2e6
......@@ -494,7 +494,7 @@ render_field(PyObject *fieldobj, SubString *format_spec, OutputString *output)
goto done;
#if PY_VERSION_HEX >= 0x03000000
assert(PyString_Check(result));
assert(PyUnicode_Check(result));
#else
assert(PyString_Check(result) || PyUnicode_Check(result));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment