@@ -4386,14 +4386,6 @@ os_link_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd,
43864386#endif
43874387 }
43884388
4389- #ifdef MS_WINDOWS
4390- if ((src -> narrow && dst -> wide ) || (src -> wide && dst -> narrow )) {
4391- PyErr_SetString (PyExc_NotImplementedError ,
4392- "link: src and dst must be the same type" );
4393- return NULL ;
4394- }
4395- #endif
4396-
43974389 if (PySys_Audit ("os.link" , "OOii" , src -> object , dst -> object ,
43984390 src_dir_fd == DEFAULT_DIR_FD ? -1 : src_dir_fd ,
43994391 dst_dir_fd == DEFAULT_DIR_FD ? -1 : dst_dir_fd ) < 0 ) {
@@ -5913,12 +5905,6 @@ internal_rename(path_t *src, path_t *dst, int src_dir_fd, int dst_dir_fd, int is
59135905 return path_error2 (src , dst );
59145906
59155907#else
5916- if ((src -> narrow && dst -> wide ) || (src -> wide && dst -> narrow )) {
5917- PyErr_Format (PyExc_ValueError ,
5918- "%s: src and dst must be the same type" , function_name );
5919- return NULL ;
5920- }
5921-
59225908 Py_BEGIN_ALLOW_THREADS
59235909#ifdef HAVE_RENAMEAT
59245910 if (dir_fd_specified ) {
@@ -10591,12 +10577,6 @@ os_symlink_impl(PyObject *module, path_t *src, path_t *dst,
1059110577
1059210578#else
1059310579
10594- if ((src -> narrow && dst -> wide ) || (src -> wide && dst -> narrow )) {
10595- PyErr_SetString (PyExc_ValueError ,
10596- "symlink: src and dst must be the same type" );
10597- return NULL ;
10598- }
10599-
1060010580 Py_BEGIN_ALLOW_THREADS
1060110581#ifdef HAVE_SYMLINKAT
1060210582 if (dir_fd != DEFAULT_DIR_FD ) {
0 commit comments