Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r81598:c245f85e49a9
Date: 2016-01-06 13:23 +0100
http://bitbucket.org/pypy/pypy/changeset/c245f85e49a9/

Log:    Better use %r than '%s' in case it's a non-printable byte

diff --git a/lib_pypy/cPickle.py b/lib_pypy/cPickle.py
--- a/lib_pypy/cPickle.py
+++ b/lib_pypy/cPickle.py
@@ -170,7 +170,7 @@
                 try:
                     meth = self.dispatch[key]
                 except KeyError:
-                    raise UnpicklingError("invalid load key, '%s'." % chr(key))
+                    raise UnpicklingError("invalid load key, %r." % chr(key))
                 meth(self)
                 key = ord(self.read(1))
         except TypeError:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to