Skip to content

Commit 2851d3e

Browse files
committed
More fighting with Sphinx; what a waste of time. :(
1 parent 4cee053 commit 2851d3e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Doc/library/binascii.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,14 @@ The :mod:`binascii` module defines the following functions:
161161
if you wish to count from the left, supply a negative *bytes_per_sep* value.
162162

163163
>>> from binascii
164-
>>> binascii.b2a_hex(b'\xb9\x01\xef')
165-
b'b901ef'
166-
>>> binascii.hexlify(b'\xb9\x01\xef', ':')
167-
b'b9\:01\:ef'
168-
>>> binascii.b2a_hex(b'\xb9\x01\xef', b'_', 2)
169-
b'b9_01ef'
170-
>>> binascii.b2a_hex(b'\xb9\x01\xef', b' ', -2)
171-
b'b901 ef'
164+
>>> binascii.b2a_hex(b'\xb9\x01\x3f')
165+
b'b9013f'
166+
>>> binascii.hexlify(b'\xb9\x01\x3f', ':')
167+
b'b9:01:3f'
168+
>>> binascii.b2a_hex(b'\xb9\x01\x3f', b'_', 2)
169+
b'b9_013f'
170+
>>> binascii.b2a_hex(b'\xb9\x01\x3f', b' ', -2)
171+
b'b901 3f'
172172

173173
.. versionchanged:: 3.8
174174
The *sep* and *bytes_per_sep* parameters were added.

Doc/library/stdtypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2412,7 +2412,7 @@ data and are closely related to string objects in a variety of other ways.
24122412

24132413
>>> value = b'\xf0\xf1\xf2'
24142414
>>> value.hex(':')
2415-
'f0\:f1\:f2'
2415+
'f0:f1:f2'
24162416
>>> value.hex('_', 2)
24172417
'f0_f1f2'
24182418
>>> b'UUDDLRLRAB'.hex(' ', -4)

0 commit comments

Comments
 (0)