Author: Ronan Lamy <[email protected]>
Branch: 
Changeset: r83705:ce2cd933a2cf
Date: 2016-04-17 04:25 +0100
http://bitbucket.org/pypy/pypy/changeset/ce2cd933a2cf/

Log:    Try to fix OS X translation

diff --git a/rpython/rlib/rposix_stat.py b/rpython/rlib/rposix_stat.py
--- a/rpython/rlib/rposix_stat.py
+++ b/rpython/rlib/rposix_stat.py
@@ -36,10 +36,9 @@
 # - ALL_STAT_FIELDS contains Float fields if the system can retrieve
 #   sub-second timestamps.
 # - TIMESPEC is defined when the "struct stat" contains st_atim field.
-
-try:
+if sys.platform.startswith('linux') or sys.platform.startswith('openbsd'):
     from rpython.rlib.rposix import TIMESPEC
-except ImportError:
+else:
     TIMESPEC = None
 
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to