Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 892a37a

Browse files
author
Hirokazu Yamamoto
committed
Merged revisions 73603 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r73603 | hirokazu.yamamoto | 2009-06-28 19:23:00 +0900 | 1 line Issue #4856: Remove checks for win NT. ........
1 parent 95c4601 commit 892a37a

4 files changed

Lines changed: 245 additions & 311 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ What's New in Python 3.2 Alpha 1?
1212
Core and Builtins
1313
-----------------
1414

15+
- Issue #4856: Remove checks for win NT.
16+
1517
Library
1618
-------
1719

Modules/_io/fileio.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,8 @@ fileio_init(PyObject *oself, PyObject *args, PyObject *kwds)
224224
}
225225

226226
#ifdef MS_WINDOWS
227-
if (GetVersion() < 0x80000000) {
228-
/* On NT, so wide API available */
229-
if (PyUnicode_Check(nameobj))
230-
widename = PyUnicode_AS_UNICODE(nameobj);
231-
}
227+
if (PyUnicode_Check(nameobj))
228+
widename = PyUnicode_AS_UNICODE(nameobj);
232229
if (widename == NULL)
233230
#endif
234231
if (fd < 0)

0 commit comments

Comments
 (0)