mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issue #20363. Fixed BytesWarning triggerred by test suite.
Patch by Berker Peksag.
This commit is contained in:
commit
a26b3f183d
4 changed files with 5 additions and 5 deletions
|
@ -362,7 +362,7 @@ def a85decode(b, *, foldspaces=False, adobe=False, ignorechars=b' \t\n\r\v'):
|
|||
if adobe:
|
||||
if not (b.startswith(_A85START) and b.endswith(_A85END)):
|
||||
raise ValueError("Ascii85 encoded byte sequences must be bracketed "
|
||||
"by {} and {}".format(_A85START, _A85END))
|
||||
"by {!r} and {!r}".format(_A85START, _A85END))
|
||||
b = b[2:-2] # Strip off start/end markers
|
||||
#
|
||||
# We have to go through this stepwise, so as to ignore spaces and handle
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue