Author: Armin Rigo <[email protected]>
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) +
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to