[pypy-commit] pypy py3.3: Add target_is_directory parameter to os.symlink, which is ignored on non-Windows platforms.

mjacob pypy.commits at gmail.com
Thu Feb 18 17:33:35 EST 2016


Author: Manuel Jacob <me at manueljacob.de>
Branch: py3.3
Changeset: r82320:ed8bc259dde5
Date: 2016-02-18 23:23 +0100
http://bitbucket.org/pypy/pypy/changeset/ed8bc259dde5/

Log:	Add target_is_directory parameter to os.symlink, which is ignored on
	non-Windows platforms.

diff --git a/pypy/module/posix/interp_posix.py b/pypy/module/posix/interp_posix.py
--- a/pypy/module/posix/interp_posix.py
+++ b/pypy/module/posix/interp_posix.py
@@ -731,8 +731,9 @@
     except OSError, e:
         raise wrap_oserror(space, e)
 
-def symlink(space, w_src, w_dst):
+def symlink(space, w_src, w_dst, w_target_is_directory=None):
     "Create a symbolic link pointing to src named dst."
+    # TODO: target_is_directory has a meaning on Windows
     try:
         dispatch_filename_2(rposix.symlink)(space, w_src, w_dst)
     except OSError, e:


More information about the pypy-commit mailing list