[pypy-commit] pypy default: Don't include stat_result.st_blksize on ootype.

ademan noreply at buildbot.pypy.org
Sun Jul 3 05:33:43 CEST 2011


Author: Daniel Roberts <Ademan555 at gmail.com>
Branch: 
Changeset: r45294:e9deaeb45961
Date: 2011-06-30 21:47 -0700
http://bitbucket.org/pypy/pypy/changeset/e9deaeb45961/

Log:	Don't include stat_result.st_blksize on ootype.

diff --git a/pypy/module/_io/interp_io.py b/pypy/module/_io/interp_io.py
--- a/pypy/module/_io/interp_io.py
+++ b/pypy/module/_io/interp_io.py
@@ -119,7 +119,7 @@
     if buffering < 0:
         buffering = DEFAULT_BUFFER_SIZE
 
-        if "st_blksize" in STAT_FIELD_TYPES:
+        if space.config.translation.type_system == 'lltype' and 'st_blksize' in STAT_FIELD_TYPES:
             fileno = space.int_w(space.call_method(w_raw, "fileno"))
             try:
                 st = os.fstat(fileno)


More information about the pypy-commit mailing list