[pypy-commit] lang-smalltalk storage: Fixed printing of ByteObjects.

anton_gulenko noreply at buildbot.pypy.org
Sun Jul 27 12:22:10 CEST 2014


Author: Anton Gulenko <anton.gulenko at googlemail.com>
Branch: storage
Changeset: r947:d8f09e784dd7
Date: 2014-07-24 19:23 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/d8f09e784dd7/

Log:	Fixed printing of ByteObjects.

diff --git a/spyvm/model.py b/spyvm/model.py
--- a/spyvm/model.py
+++ b/spyvm/model.py
@@ -823,8 +823,7 @@
         if self.has_class() and self.w_class.has_space():
             if self.w_class.space().omit_printing_raw_bytes.is_set():
                 return "<omitted>"
-        else:
-            return "'%s'" % self.as_string().replace('\r', '\n')
+        return "'%s'" % self.as_string().replace('\r', '\n')
 
     def as_string(self):
         if self.bytes is not None:


More information about the pypy-commit mailing list