[pypy-commit] pypy win32-fixes3: cleaner version of changeset 17314bb8cd1a on py3k branch
mattip
noreply at buildbot.pypy.org
Tue Apr 16 19:13:16 CEST 2013
Author: mattip <matti.picus at gmail.com>
Branch: win32-fixes3
Changeset: r63412:87ac4d9b978b
Date: 2013-04-16 12:34 +0300
http://bitbucket.org/pypy/pypy/changeset/87ac4d9b978b/
Log: cleaner version of changeset 17314bb8cd1a on py3k branch
diff --git a/rpython/rlib/rposix.py b/rpython/rlib/rposix.py
--- a/rpython/rlib/rposix.py
+++ b/rpython/rlib/rposix.py
@@ -103,11 +103,10 @@
_set_errno(rffi.cast(INT, errno))
if os.name == 'nt':
- is_valid_fd = rffi.llexternal(
+ is_valid_fd = jit.dont_look_inside(rffi.llexternal(
"_PyVerify_fd", [rffi.INT], rffi.INT,
compilation_info=errno_eci,
- )
- @jit.dont_look_inside
+ ))
def validate_fd(fd):
if not is_valid_fd(fd):
raise OSError(get_errno(), 'Bad file descriptor')
More information about the pypy-commit
mailing list