diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2022-09-25 22:15:45 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-09-26 00:54:18 +1000 |
commit | 9d6f474ea49fd89b7a1a90b830e6014ef70a89b7 (patch) | |
tree | fb192b82f10101554a30b67af098bf3a87d32eb7 /docs/esp8266/tutorial/repl.rst | |
parent | dd9dcb594c577cb818c336db59a884fd329c3840 (diff) | |
download | micropython-9d6f474ea49fd89b7a1a90b830e6014ef70a89b7.tar.gz micropython-9d6f474ea49fd89b7a1a90b830e6014ef70a89b7.zip |
py/objstr: Don't treat bytes as unicode in str.count.
`b'\xaa \xaa'.count(b'\xaa')` now (correctly) returns 2 instead of 1.
Fixes issue #9404.
This work was funded through GitHub Sponsors.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'docs/esp8266/tutorial/repl.rst')
0 files changed, 0 insertions, 0 deletions