summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2020-12-13 16:41:12 +1100
committerDamien George <damien@micropython.org>2020-12-14 14:35:29 +1100
commit1719459c28138be009c8dd41f0e6cb3b942eb2dd (patch)
tree61e131d0c973c3740e84982cb113dd9d57b1a2e8 /docs
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 'docs')
-rw-r--r--docs/library/ubinascii.rst10
1 files changed, 4 insertions, 6 deletions
diff --git a/docs/library/ubinascii.rst b/docs/library/ubinascii.rst
index 192d34514..721b80508 100644
--- a/docs/library/ubinascii.rst
+++ b/docs/library/ubinascii.rst
@@ -14,13 +14,11 @@ Functions
.. function:: hexlify(data, [sep])
- Convert binary data to hexadecimal representation. Returns bytes string.
-
- .. admonition:: Difference to CPython
- :class: attention
+ Convert the bytes in the *data* object to a hexadecimal representation.
+ Returns a bytes object.
- If additional argument, *sep* is supplied, it is used as a separator
- between hexadecimal values.
+ If the additional argument *sep* is supplied it is used as a separator
+ between hexadecimal values.
.. function:: unhexlify(data)