Author: Armin Rigo <[email protected]>
Branch: py3.6-sandbox-2
Changeset: r97152:5fadf669fc02
Date: 2019-08-11 22:46 +0200
http://bitbucket.org/pypy/pypy/changeset/5fadf669fc02/
Log: fixes
diff --git a/pypy/goal/targetpypystandalone.py
b/pypy/goal/targetpypystandalone.py
--- a/pypy/goal/targetpypystandalone.py
+++ b/pypy/goal/targetpypystandalone.py
@@ -326,7 +326,8 @@
config.translation.jit = True
if config.translation.sandbox:
- config.objspace.lonepycfiles = False
+ #config.objspace.lonepycfiles = False --- not available in py3.x
+ pass
if config.objspace.usemodules.cpyext:
if config.translation.gc not in ('incminimark', 'boehm'):
diff --git a/rpython/rlib/rsiphash.py b/rpython/rlib/rsiphash.py
--- a/rpython/rlib/rsiphash.py
+++ b/rpython/rlib/rsiphash.py
@@ -139,6 +139,8 @@
translator = hop.rtyper.annotator.translator
if translator.config.translation.reverse_debugger:
return # ignore and use the regular hash, with reverse-debugger
+ if translator.config.translation.sandbox:
+ return # ignore and use the regular hash, with sandboxing
bk = hop.rtyper.annotator.bookkeeper
s_callable = bk.immutablevalue(initialize_from_env)
r_callable = hop.rtyper.getrepr(s_callable)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit