Skip to content

Commit 4b051ee

Browse files
committed
Corrected assert to check for correct type in py3k.
1 parent 6057b2e commit 4b051ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/stringlib/string_format.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ render_field(PyObject *fieldobj, SubString *format_spec, OutputString *output)
494494
goto done;
495495

496496
#if PY_VERSION_HEX >= 0x03000000
497-
assert(PyString_Check(result));
497+
assert(PyUnicode_Check(result));
498498
#else
499499
assert(PyString_Check(result) || PyUnicode_Check(result));
500500

0 commit comments

Comments
 (0)