diff -r 976e41a50022 Lib/pathlib.py --- a/Lib/pathlib.py Tue Nov 26 01:32:15 2013 +0100 +++ b/Lib/pathlib.py Tue Nov 26 15:28:21 2013 +0800 @@ -21,7 +21,6 @@ from urllib.parse import quote as urlquote, quote_from_bytes as urlquote_from_bytes -supports_symlinks = True try: import nt except ImportError: @@ -30,7 +29,6 @@ if sys.getwindowsversion()[:2] >= (6, 0): from nt import _getfinalpathname else: - supports_symlinks = False _getfinalpathname = None @@ -354,11 +352,7 @@ replace = _wrap_binary_strfunc(os.replace) if nt: - if supports_symlinks: - symlink = _wrap_binary_strfunc(os.symlink) - else: - def symlink(a, b, target_is_directory): - raise NotImplementedError("symlink() not available on this system") + symlink = _wrap_binary_strfunc(os.symlink) else: # Under POSIX, os.symlink() takes two args @staticmethod