Skip to content

Commit 2ca421e

Browse files
author
eric.smith
committed
Corrected assert to check for correct type in py3k.
git-svn-id: http://svn.python.org/projects/python/trunk@61054 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 2427926 commit 2ca421e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)