X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib-python/blobdiff_plain/addc0c3760b565ead630bd67cc038b31954b9284..c316167fdcbce41e8cc731e8c19cb00f53c1b9cd:/fdutils.pyx diff --git a/fdutils.pyx b/fdutils.pyx index 55c8ca1..71135e6 100644 --- a/fdutils.pyx +++ b/fdutils.pyx @@ -38,7 +38,7 @@ def fdflags(file, FILE may be integer file descriptor or an object with `fileno' method. """ cdef int rc - rc = _fdflags(_getfd(fd), fbix, fxor, fdbic, fdxor) + rc = _fdflags(_getfd(file), fbic, fxor, fdbic, fdxor) if rc < 0: _oserror() return rc