diff -r c06c585f166b -r 11ed2eadf937 mercurial/cext/osutil.c --- a/mercurial/cext/osutil.c Thu Sep 13 12:43:50 2018 -0400 +++ b/mercurial/cext/osutil.c Thu Sep 13 17:32:20 2018 -0400 @@ -1217,7 +1217,9 @@ char fpmode[4]; int fppos = 0; int plus; +#ifndef IS_PY3K FILE *fp; +#endif if (!PyArg_ParseTupleAndKeywords(args, kwds, PY23("et|si:posixfile", "et|yi:posixfile"),