[pypy-commit] pypy type_system-cleanup: remove references to type_system from pypy
rlamy
noreply at buildbot.pypy.org
Fri Oct 9 05:31:25 CEST 2015
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: type_system-cleanup
Changeset: r80072:db34e9582e69
Date: 2015-10-09 04:31 +0100
http://bitbucket.org/pypy/pypy/changeset/db34e9582e69/
Log: remove references to type_system from pypy
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
@@ -118,7 +118,7 @@
if buffering < 0:
buffering = DEFAULT_BUFFER_SIZE
- if space.config.translation.type_system == 'lltype' and 'st_blksize' in STAT_FIELD_TYPES:
+ if 'st_blksize' in STAT_FIELD_TYPES:
fileno = space.c_int_w(space.call_method(w_raw, "fileno"))
try:
st = os.fstat(fileno)
diff --git a/pypy/module/sys/vm.py b/pypy/module/sys/vm.py
--- a/pypy/module/sys/vm.py
+++ b/pypy/module/sys/vm.py
@@ -57,8 +57,7 @@
raise OperationError(space.w_ValueError,
space.wrap("recursion limit must be positive"))
space.sys.recursionlimit = new_limit
- if space.config.translation.type_system == 'lltype':
- _stack_set_length_fraction(new_limit * 0.001)
+ _stack_set_length_fraction(new_limit * 0.001)
def getrecursionlimit(space):
"""Return the last value set by setrecursionlimit().
diff --git a/pypy/tool/pypyjit.py b/pypy/tool/pypyjit.py
--- a/pypy/tool/pypyjit.py
+++ b/pypy/tool/pypyjit.py
@@ -93,7 +93,6 @@
try:
interp, graph = get_interpreter(entry_point, [], backendopt=False,
config=config,
- type_system=config.translation.type_system,
policy=PyPyAnnotatorPolicy(space))
except Exception, e:
print '%s: %s' % (e.__class__, e)
More information about the pypy-commit
mailing list