[pypy-svn] r47860 - pypy/dist/pypy/lang/smalltalk

akuhn at codespeak.net akuhn at codespeak.net
Wed Oct 24 20:57:45 CEST 2007


Author: akuhn
Date: Wed Oct 24 20:57:45 2007
New Revision: 47860

Modified:
   pypy/dist/pypy/lang/smalltalk/squeakimage.py
Log:
omitting odd bytes in bytes and c'methods in the same way

Modified: pypy/dist/pypy/lang/smalltalk/squeakimage.py
==============================================================================
--- pypy/dist/pypy/lang/smalltalk/squeakimage.py	(original)
+++ pypy/dist/pypy/lang/smalltalk/squeakimage.py	Wed Oct 24 20:57:45 2007
@@ -332,9 +332,7 @@
         l = []
         for each in self.chunk.data[(literalsize+1):]:
             l.append(int2str(each))
-        if len(l) > 0:
-            l[-1] = l[-1][:-(self.format & 3)] # omit odd bytes
-        bytes = "".join(l) 
+        bytes = "".join(l)[:-(self.format & 3)] 
         w_compiledmethod.__init__(
             w_class = self.g_class.w_object,
             size = literalsize,


More information about the pypy-svn mailing list