diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-08-29 00:06:21 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-08-29 00:06:21 +0300 |
commit | 37379a2974190ab0fc97f840112d5a40c907368b (patch) | |
tree | 7c4d0ce9e82aa58ca8af5198a57f1e3211fb7a82 /py/objtuple.c | |
parent | c5c095690fc8294068e88c71baca92bf757ad91c (diff) |
py/objstr: startswith, endswith: Check arg to be a string.
Otherwise, it will silently get incorrect result on other values types,
including CPython tuple form like "foo.png".endswith(("png", "jpg"))
(which MicroPython doesn't support for unbloatedness).
Diffstat (limited to 'py/objtuple.c')
0 files changed, 0 insertions, 0 deletions