Author: Armin Rigo <ar...@tunes.org>
Branch: py3.5
Changeset: r88833:0b3bb5547935
Date: 2016-12-02 18:35 +0100
http://bitbucket.org/pypy/pypy/changeset/0b3bb5547935/

Log:    stick rposix.O_CLOEXEC inside posix

diff --git a/pypy/module/posix/__init__.py b/pypy/module/posix/__init__.py
--- a/pypy/module/posix/__init__.py
+++ b/pypy/module/posix/__init__.py
@@ -206,6 +206,10 @@
         interpleveldefs['get_blocking'] = 'interp_posix.get_blocking'
         interpleveldefs['set_blocking'] = 'interp_posix.set_blocking'
 
+    for _name in ["O_CLOEXEC"]:
+        if getattr(rposix, _name) is not None:
+            interpleveldefs[_name] = 'space.wrap(%d)' % getattr(rposix, _name)
+
     def startup(self, space):
         from pypy.module.posix import interp_posix
         from pypy.module.imp import importing
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to