[pypy-commit] pypy py3.6-sandbox-2: tweak

arigo pypy.commits at gmail.com
Mon Aug 19 16:20:10 EDT 2019


Author: Armin Rigo <arigo at tunes.org>
Branch: py3.6-sandbox-2
Changeset: r97219:2dec2639c2f9
Date: 2019-08-19 21:13 +0200
http://bitbucket.org/pypy/pypy/changeset/2dec2639c2f9/

Log:	tweak

diff --git a/pypy/module/time/interp_time.py b/pypy/module/time/interp_time.py
--- a/pypy/module/time/interp_time.py
+++ b/pypy/module/time/interp_time.py
@@ -299,7 +299,7 @@
                     return space.newfloat(
                         widen(timeval.c_tv_sec) +
                         widen(timeval.c_tv_usec) * 1e-6)
-        if HAVE_FTIME:
+        if HAVE_FTIME and not space.config.translation.sandbox:
             with lltype.scoped_alloc(TIMEB) as t:
                 c_ftime(t)
                 result = (widen(t.c_time) +


More information about the pypy-commit mailing list