diff options
Diffstat (limited to 'Modules/_io')
-rw-r--r-- | Modules/_io/fileio.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c index b21712c..4e7c721 100644 --- a/Modules/_io/fileio.c +++ b/Modules/_io/fileio.c @@ -224,11 +224,8 @@ fileio_init(PyObject *oself, PyObject *args, PyObject *kwds) } #ifdef MS_WINDOWS - if (GetVersion() < 0x80000000) { - /* On NT, so wide API available */ - if (PyUnicode_Check(nameobj)) - widename = PyUnicode_AS_UNICODE(nameobj); - } + if (PyUnicode_Check(nameobj)) + widename = PyUnicode_AS_UNICODE(nameobj); if (widename == NULL) #endif if (fd < 0) |