diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-01-24 14:07:06 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-01-24 14:07:06 (GMT) |
commit | 7fa5a99b0693100077a556f05e3c6638b837389b (patch) | |
tree | 31be037cf6e9978bafaa3070f588e09bd6c99e34 /Modules | |
parent | 91eef984fde07756e230b32a5341772ba412bdfa (diff) | |
parent | 5311c1d7ab24f862b9b0bb272a9aee9c4f4ac023 (diff) | |
download | cpython-7fa5a99b0693100077a556f05e3c6638b837389b.zip cpython-7fa5a99b0693100077a556f05e3c6638b837389b.tar.gz cpython-7fa5a99b0693100077a556f05e3c6638b837389b.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 673877a..0afab3c 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -5330,7 +5330,6 @@ win_symlink(PyObject *self, PyObject *args, PyObject *kwargs) PyObject *src, *dest; int target_is_directory = 0; DWORD res; - WIN32_FILE_ATTRIBUTE_DATA src_info; if (!check_CreateSymbolicLinkW()) { @@ -5351,16 +5350,6 @@ win_symlink(PyObject *self, PyObject *args, PyObject *kwargs) return NULL; } - /* if src is a directory, ensure target_is_directory==1 */ - if( - GetFileAttributesExW( - PyUnicode_AsUnicode(src), GetFileExInfoStandard, &src_info - )) - { - target_is_directory = target_is_directory || - (src_info.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY); - } - Py_BEGIN_ALLOW_THREADS res = Py_CreateSymbolicLinkW( PyUnicode_AsUnicode(dest), |