diff options
author | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2009-06-28 10:23:00 (GMT) |
---|---|---|
committer | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2009-06-28 10:23:00 (GMT) |
commit | a3c560907972822a661b4fa933ac9637145c5048 (patch) | |
tree | ad93893920eba4603c1d54dc86cec1a4c9a4aad7 /Modules/_io | |
parent | ecb4f953dd8fdfc17de759dcd3bf737debcb7284 (diff) | |
download | cpython-a3c560907972822a661b4fa933ac9637145c5048.zip cpython-a3c560907972822a661b4fa933ac9637145c5048.tar.gz cpython-a3c560907972822a661b4fa933ac9637145c5048.tar.bz2 |
Issue #4856: Remove checks for win NT.
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 917ad63..989c866 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) |