10000 uhashlib: masquerade as hashlib for python3 compatibility · godlygeek/circuitpython@11a97bd · GitHub
[go: up one dir, main page]

Skip to content

Commit 11a97bd

Browse files
committed
uhashlib: masquerade as hashlib for python3 compatibility
1 parent 005226a commit 11a97bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extmod/moduhashlib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ STATIC const mp_obj_type_t sha1_type = {
149149
#endif
150150

151151
STATIC const mp_rom_map_elem_t mp_module_hashlib_globals_table[] = {
152-
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_uhashlib) },
152+
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_hashlib) },
153153
{ MP_ROM_QSTR(MP_QSTR_sha256), MP_ROM_PTR(&sha256_type) },
154154
#if MICROPY_PY_UHASHLIB_SHA1
155155
{ MP_ROM_QSTR(MP_QSTR_sha1), MP_ROM_PTR(&sha1_type) },

py/objmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ STATIC const mp_rom_map_elem_t mp_builtin_module_table[] = {
199199
{ MP_ROM_QSTR(MP_QSTR_utimeq), MP_ROM_PTR(&mp_module_utimeq) },
200200
#endif
201201
#if MICROPY_PY_UHASHLIB
202-
{ MP_ROM_QSTR(MP_QSTR_uhashlib), MP_ROM_PTR(&mp_module_uhashlib) },
202+
{ MP_ROM_QSTR(MP_QSTR_hashlib), MP_ROM_PTR(&mp_module_uhashlib) },
203203
#endif
204204
#if MICROPY_PY_UBINASCII
205205
{ MP_ROM_QSTR(MP_QSTR_binascii), MP_ROM_PTR(&mp_module_ubinascii) },

0 commit comments

Comments
 (0)
0