diff options
Diffstat (limited to 'Lib/pathlib.py')
-rw-r--r-- | Lib/pathlib.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Lib/pathlib.py b/Lib/pathlib.py index 5142ff6..d70fde0 100644 --- a/Lib/pathlib.py +++ b/Lib/pathlib.py @@ -418,12 +418,7 @@ class _NormalAccessor(_Accessor): unlink = os.unlink - if hasattr(os, "link"): - link_to = os.link - else: - @staticmethod - def link_to(self, target): - raise NotImplementedError("os.link() not available on this system") + link_to = os.link rmdir = os.rmdir @@ -435,7 +430,6 @@ class _NormalAccessor(_Accessor): if supports_symlinks: symlink = os.symlink else: - @staticmethod def symlink(a, b, target_is_directory): raise NotImplementedError("symlink() not available on this system") else: |