Author: Philip Jenvey <pjen...@underboss.org>
Branch: py3k
Changeset: r74276:e9025fb6f10d
Date: 2014-10-29 11:17 -0700
http://bitbucket.org/pypy/pypy/changeset/e9025fb6f10d/

Log:    kill the old, unused trap_EINTR

diff --git a/pypy/module/_io/interp_bufferedio.py 
b/pypy/module/_io/interp_bufferedio.py
--- a/pypy/module/_io/interp_bufferedio.py
+++ b/pypy/module/_io/interp_bufferedio.py
@@ -54,16 +54,6 @@
 class BlockingIOError(Exception):
     pass
 
-def trap_EINTR(space, e):
-    """Return True if an EnvironmentError with errno == EINTR is set."""
-    if not e.match(space, space.w_EnvironmentError):
-        return False
-    w_value = e.get_w_value(space)
-    w_errno = space.getattr(w_value, space.wrap("errno"))
-    if space.eq_w(w_errno, space.wrap(errno.EINTR)):
-        return True
-    return False
-
 class W_BufferedIOBase(W_IOBase):
     def _check_init(self, space):
         raise NotImplementedError
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to