[pypy-commit] pypy kill-ootype: removed some more ootype stuff around stat and configuration

alex_gaynor noreply at buildbot.pypy.org
Thu Jul 25 20:01:36 CEST 2013


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: kill-ootype
Changeset: r65659:35ef76608d04
Date: 2013-07-25 11:00 -0700
http://bitbucket.org/pypy/pypy/changeset/35ef76608d04/

Log:	removed some more ootype stuff around stat and configuration

diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py
--- a/pypy/config/pypyoption.py
+++ b/pypy/config/pypyoption.py
@@ -48,11 +48,6 @@
      "termios", "_minimal_curses",
      ]))
 
-working_oo_modules = default_modules.copy()
-working_oo_modules.update(dict.fromkeys(
-    ["_md5", "_sha", "cStringIO", "itertools"]
-))
-
 # XXX this should move somewhere else, maybe to platform ("is this posixish"
 #     check or something)
 if sys.platform == "win32":
diff --git a/pypy/module/posix/interp_posix.py b/pypy/module/posix/interp_posix.py
--- a/pypy/module/posix/interp_posix.py
+++ b/pypy/module/posix/interp_posix.py
@@ -208,11 +208,8 @@
 
 # ____________________________________________________________
 
-# For LL backends, expose all fields.
-# For OO backends, only the portable fields (the first 10).
 STAT_FIELDS = unrolling_iterable(enumerate(ll_os_stat.STAT_FIELDS))
-PORTABLE_STAT_FIELDS = unrolling_iterable(
-                                 enumerate(ll_os_stat.PORTABLE_STAT_FIELDS))
+
 
 def build_stat_result(space, st):
     FIELDS = STAT_FIELDS    # also when not translating at all
diff --git a/rpython/rtyper/module/r_os_stat.py b/rpython/rtyper/module/r_os_stat.py
--- a/rpython/rtyper/module/r_os_stat.py
+++ b/rpython/rtyper/module/r_os_stat.py
@@ -19,10 +19,7 @@
 
     def __init__(self, rtyper):
         self.rtyper = rtyper
-        if rtyper.type_system.name == "lltypesystem":
-            self.stat_fields = ll_os_stat.STAT_FIELDS
-        else:
-            self.stat_fields = ll_os_stat.PORTABLE_STAT_FIELDS
+        self.stat_fields = ll_os_stat.STAT_FIELDS
 
         self.stat_field_indexes = {}
         for i, (name, TYPE) in enumerate(self.stat_fields):


More information about the pypy-commit mailing list