Author: Armin Rigo <[email protected]>
Branch:
Changeset: r82322:eb4764c87513
Date: 2016-02-19 09:39 +0100
http://bitbucket.org/pypy/pypy/changeset/eb4764c87513/
Log: issue #2241: oops
diff --git a/pypy/module/_cffi_backend/embedding.py
b/pypy/module/_cffi_backend/embedding.py
--- a/pypy/module/_cffi_backend/embedding.py
+++ b/pypy/module/_cffi_backend/embedding.py
@@ -57,7 +57,7 @@
# pypy_init_embedded_cffi_module().
if not glob.patched_sys:
space.appexec([], """():
- import os
+ import os, sys
sys.stdin = sys.__stdin__ = os.fdopen(0, 'rb', 0)
sys.stdout = sys.__stdout__ = os.fdopen(1, 'wb', 0)
sys.stderr = sys.__stderr__ = os.fdopen(2, 'wb', 0)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit