File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -462,8 +462,10 @@ handler:
462
462
where encoding should continue. The replacement may be either :class: `str ` or
463
463
:class: `bytes `. If the replacement is bytes, the encoder will simply copy
464
464
them into the output buffer. If the replacement is a string, the encoder will
465
- encode the replacement. Encoding continues on original input at the
466
- specified position. Negative position values will be treated as being
465
+ encode the replacement with the ``'strict' `` error handling, which means
466
+ :exc: `UnicodeEncodeError ` may be raised here.
467
+ Encoding continues on originalinput at the specified position.
468
+ Negative position values will be treated as being
467
469
relative to the end of the input string. If the resulting position is out of
468
470
bound an :exc: `IndexError ` will be raised.
469
471
You can’t perform that action at this time.
0 commit comments