summaryrefslogtreecommitdiff
path: root/Lib/base64.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-02-06 22:52:23 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2014-02-06 22:52:23 +0200
commita26b3f183d1101a21c51a5bd0c75834dfe859039 (patch)
tree22d428add046e60444327110f7b57cc6bf819c6c /Lib/base64.py
parenta146bef02bf26b75d8d720f444283e28e784a1e3 (diff)
parentbc27a050a7bef228c5e125c4de938faef56533fd (diff)
downloadcpython-git-a26b3f183d1101a21c51a5bd0c75834dfe859039.tar.gz
Issue #20363. Fixed BytesWarning triggerred by test suite.
Patch by Berker Peksag.
Diffstat (limited to 'Lib/base64.py')
-rwxr-xr-xLib/base64.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/base64.py b/Lib/base64.py
index 84818cf078..573f76d361 100755
--- a/Lib/base64.py
+++ b/Lib/base64.py
@@ -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