Issue #20363. Fixed BytesWarning triggerred by test suite.

Patch by Berker Peksag.
This commit is contained in:
Serhiy Storchaka 2014-02-06 22:52:23 +02:00
commit a26b3f183d
4 changed files with 5 additions and 5 deletions

View file

@ -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