Browse Source

cc3200: Remove uhashlib.hexdigest().

pull/1278/head
Daniel Campora 10 years ago
parent
commit
7506db4ccb
  1. 7
      cc3200/mods/moduhashlib.c
  2. 3
      cc3200/qstrdefsport.h

7
cc3200/mods/moduhashlib.c

@ -163,16 +163,9 @@ STATIC mp_obj_t hash_digest(mp_obj_t self_in) {
} }
MP_DEFINE_CONST_FUN_OBJ_1(hash_digest_obj, hash_digest); MP_DEFINE_CONST_FUN_OBJ_1(hash_digest_obj, hash_digest);
STATIC mp_obj_t hash_hexdigest(mp_obj_t self_in) {
(void)self_in;
mp_not_implemented("");
}
MP_DEFINE_CONST_FUN_OBJ_1(hash_hexdigest_obj, hash_hexdigest);
STATIC const mp_map_elem_t hash_locals_dict_table[] = { STATIC const mp_map_elem_t hash_locals_dict_table[] = {
{ MP_OBJ_NEW_QSTR(MP_QSTR_update), (mp_obj_t) &hash_update_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_update), (mp_obj_t) &hash_update_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_digest), (mp_obj_t) &hash_digest_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_digest), (mp_obj_t) &hash_digest_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_hexdigest), (mp_obj_t) &hash_hexdigest_obj },
}; };
STATIC MP_DEFINE_CONST_DICT(hash_locals_dict, hash_locals_dict_table); STATIC MP_DEFINE_CONST_DICT(hash_locals_dict, hash_locals_dict_table);

3
cc3200/qstrdefsport.h

@ -74,6 +74,7 @@ Q(binascii)
Q(re) Q(re)
Q(json) Q(json)
Q(heapq) Q(heapq)
Q(hashlib)
// for os module // for os module
Q(uos) Q(uos)
@ -350,11 +351,9 @@ Q(POSITIVE)
Q(NEGATIVE) Q(NEGATIVE)
// for uhashlib module // for uhashlib module
Q(hashlib)
Q(uhashlib) Q(uhashlib)
Q(update) Q(update)
Q(digest) Q(digest)
Q(hexdigest)
//Q(md5) //Q(md5)
Q(sha1) Q(sha1)
Q(sha256) Q(sha256)

Loading…
Cancel
Save