diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-01-24 14:06:45 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-01-24 14:06:45 (GMT) |
commit | 8485ad1410f790abbd3bb2c019b4657241586f57 (patch) | |
tree | 04c8fdbe938b0c746711353ef0960480ce36f2b6 /Modules | |
parent | 3ef2f8c296ec144586fe35babbaf9d644c7ad222 (diff) | |
parent | 91ecea24f53b99aa190f6b17c2b51d95cb09d233 (diff) | |
download | cpython-8485ad1410f790abbd3bb2c019b4657241586f57.zip cpython-8485ad1410f790abbd3bb2c019b4657241586f57.tar.gz cpython-8485ad1410f790abbd3bb2c019b4657241586f57.tar.bz2 |
merge heads
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 61a0439..1797a2f 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -6551,7 +6551,6 @@ win_symlink(PyObject *self, PyObject *args, PyObject *kwargs) wchar_t *wsrc, *wdest; int target_is_directory = 0; DWORD res; - WIN32_FILE_ATTRIBUTE_DATA src_info; if (!check_CreateSymbolicLinkW()) { @@ -6581,16 +6580,6 @@ win_symlink(PyObject *self, PyObject *args, PyObject *kwargs) if (wsrc == NULL) goto error; - /* if src is a directory, ensure target_is_directory==1 */ - if( - GetFileAttributesExW( - wsrc, GetFileExInfoStandard, &src_info - )) - { - target_is_directory = target_is_directory || - (src_info.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY); - } - Py_BEGIN_ALLOW_THREADS res = Py_CreateSymbolicLinkW(wdest, wsrc, target_is_directory); Py_END_ALLOW_THREADS |