FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Corrected assert to check for correct type in py3k. · python-emscripten/cpython@4b051ee · GitHub

Repository navigation

Commit 4b051ee

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

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)

Back | FazBrowse Home | New Git URL