aboutsummaryrefslogtreecommitdiff
path: root/extmod
diff options
context:
space:
mode:
authorDamien George2020-12-13 16:41:12 +1100
committerDamien George2020-12-14 14:35:29 +1100
commit1719459c28138be009c8dd41f0e6cb3b942eb2dd (patch)
tree61e131d0c973c3740e84982cb113dd9d57b1a2e8 /extmod
parent246b2e016ab4a226cc0ac015f5cc340418f81ca1 (diff)
extmod/modubinascii: Update code, docs for hexlify now CPython has sep.
Since CPython 3.8 the optional "sep" argument to hexlify is officially supported, so update comments in the code and the docs to reflect this. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'extmod')
-rw-r--r--extmod/modubinascii.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extmod/modubinascii.c b/extmod/modubinascii.c
index 1d4c72b24..9e4f86fbd 100644
--- a/extmod/modubinascii.c
+++ b/extmod/modubinascii.c
@@ -34,8 +34,8 @@
#if MICROPY_PY_UBINASCII
STATIC mp_obj_t mod_binascii_hexlify(size_t n_args, const mp_obj_t *args) {
- // Second argument is for an extension to allow a separator to be used
- // between values.
+ // First argument is the data to convert.
+ // Second argument is an optional separator to be used between values.
const char *sep = NULL;
mp_buffer_info_t bufinfo;
mp_get_buffer_raise(args[0], &bufinfo, MP_BUFFER_READ);