Commit 06bfefe
committed
py/objstr: Fix b"".hex() so it returns an empty str object.
As per CPython behaviour, `b"".hex()` should return an empty str object
(not an empty bytes object).
Fixes issue micropython#18807.
Signed-off-by: Damien George <damien@micropython.org>1 parent 65ddc23 commit 06bfefe
2 files changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1995 | 1995 | | |
1996 | 1996 | | |
1997 | 1997 | | |
1998 | | - | |
| 1998 | + | |
1999 | 1999 | | |
2000 | 2000 | | |
2001 | 2001 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
0 commit comments