From: Mark Wooding Date: Sat, 9 Sep 2017 22:11:09 +0000 (+0100) Subject: fdutils.pyx (fdflags): Fix disastrous variable-name error. X-Git-Tag: 1.1.1~2 X-Git-Url: https://git.distorted.org.uk/~mdw/mLib-python/commitdiff_plain/f0bf14e99b8ee5581c826fa857676440de2846c4?hp=1db32dec968f0985a597c6d810fd4cd6a9bfaad8 fdutils.pyx (fdflags): Fix disastrous variable-name error. --- 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