Author: Armin Rigo <ar...@tunes.org>
Branch: py3.5
Changeset: r87863:bbd52853e94b
Date: 2016-10-18 20:50 +0200
http://bitbucket.org/pypy/pypy/changeset/bbd52853e94b/

Log:    Issue #2419 (2/2)

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
@@ -4,8 +4,7 @@
 from pypy.interpreter.gateway import unwrap_spec
 from rpython.rtyper.lltypesystem import lltype
 from rpython.rlib.rarithmetic import intmask, r_ulonglong, r_longfloat, widen
-from rpython.rlib.rtime import (TIMEB, c_ftime,
-                                GETTIMEOFDAY_NO_TZ, TIMEVAL,
+from rpython.rlib.rtime import (GETTIMEOFDAY_NO_TZ, TIMEVAL,
                                 HAVE_GETTIMEOFDAY, HAVE_FTIME)
 from rpython.rlib import rposix, rtime
 from rpython.translator.tool.cbuild import ExternalCompilationInfo
@@ -14,6 +13,9 @@
 import sys
 import time as pytime
 
+if HAVE_FTIME:
+    from rpython.rlib.rtime import TIMEB, c_ftime
+
 _POSIX = os.name == "posix"
 _WIN = os.name == "nt"
 _MACOSX = sys.platform == "darwin"
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to