summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp8266
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2022-09-25 22:15:45 +1000
committerDamien George <damien@micropython.org>2022-09-26 00:54:18 +1000
commit9d6f474ea49fd89b7a1a90b830e6014ef70a89b7 (patch)
treefb192b82f10101554a30b67af098bf3a87d32eb7 /docs/esp8266
parentdd9dcb594c577cb818c336db59a884fd329c3840 (diff)
downloadmicropython-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')
0 files changed, 0 insertions, 0 deletions