File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1817,13 +1817,15 @@ expression support in the :mod:`re` module).
18171817 See :ref: `error-handlers ` for details.
18181818
18191819 For performance reasons, the value of *errors * is not checked for validity
1820- unless an encoding error actually occurs, :ref: `devmode ` is enabled or a :ref: `debug build <debug-build >` is used.
1820+ unless an encoding error actually occurs,
1821+ :ref: `devmode ` is enabled
1822+ or a :ref: `debug build <debug-build >` is used.
18211823 For example::
18221824
1823- >>> encoded_str_to_byte = 'Python'.encode()
1824- >>> type(encoded_str_to_byte )
1825+ >>> encoded_str_to_bytes = 'Python'.encode()
1826+ >>> type(encoded_str_to_bytes )
18251827 <class 'bytes'>
1826- >>> encoded_str_to_byte
1828+ >>> encoded_str_to_bytes
18271829 b'Python'
18281830
18291831
You can’t perform that action at this time.
0 commit comments