File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -161,14 +161,14 @@ The :mod:`binascii` module defines the following functions:
161
161
if you wish to count from the left, supply a negative *bytes_per_sep * value.
162
162
163
163
>>> 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 '
172
172
173
173
.. versionchanged :: 3.8
174
174
The *sep * and *bytes_per_sep * parameters were added.
Original file line number Diff line number Diff line change @@ -2412,7 +2412,7 @@ data and are closely related to string objects in a variety of other ways.
2412
2412
2413
2413
>>> value = b ' \xf0\xf1\xf2 '
2414
2414
>>> value.hex(' :' )
2415
- 'f0\ :f1\ :f2'
2415
+ 'f0:f1:f2'
2416
2416
>>> value.hex(' _' , 2 )
2417
2417
'f0_f1f2'
2418
2418
>>> b ' UUDDLRLRAB' .hex(' ' , - 4 )
You can’t perform that action at this time.
0 commit comments