cpython: 8c978cbe057c (original) (raw)

Mercurial > cpython

changeset 99470:8c978cbe057c

Issue #25717: Merge fstat() fix from 3.5 [#25717]

Martin Panter vadmium+py@gmail.com
date Sun, 06 Dec 2015 03:29:54 +0000
parents 0c9095566f21(current diff)20ea12222b0e(diff)
children 50a99be891bc
files Misc/NEWS
diffstat 2 files changed, 31 insertions(+), 12 deletions(-)[+] [-] Misc/NEWS 4 Modules/_io/fileio.c 39

line wrap: on

line diff

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -109,6 +109,10 @@ Core and Builtins Library ------- +- Issue #25717: Restore the previous behaviour of tolerating most fstat()

--- a/Modules/_io/fileio.c +++ b/Modules/_io/fileio.c @@ -250,6 +250,7 @@ static int int *atomic_flag_works = NULL; #endif struct _Py_stat_struct fdfstat;

+#ifdef MS_WINDOWS

+#else

+#endif

#if defined(S_ISDIR) && defined(EISDIR)

#endif /* defined(S_ISDIR) */ #ifdef HAVE_STRUCT_STAT_ST_BLKSIZE

#endif /* HAVE_STRUCT_STAT_ST_BLKSIZE */

#if defined(MS_WINDOWS) || defined(CYGWIN) /* don't translate newlines (\r\n <=> \n) */