Author: Armin Rigo <[email protected]>
Branch:
Changeset: r83708:d18adeb45be8
Date: 2016-04-17 10:24 +0200
http://bitbucket.org/pypy/pypy/changeset/d18adeb45be8/
Log: merge heads
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