From 0eaaa74e51408458a162bf5d2d7813056365268e Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Thu, 14 Mar 2024 09:29:28 +0100 Subject: rename AtLocation.symlink to symlink_to This mirrors what was done for pathlib.Path to avoid confusion about argument order. --- linuxnamespaces/atlocation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linuxnamespaces/atlocation.py') diff --git a/linuxnamespaces/atlocation.py b/linuxnamespaces/atlocation.py index 2bd3f51..08c0de5 100644 --- a/linuxnamespaces/atlocation.py +++ b/linuxnamespaces/atlocation.py @@ -313,7 +313,7 @@ class AtLocation: assert self.location return os.rmdir(self.location, dir_fd=self.fd_or_none) - def symlink(self, linktarget: PathConvertible) -> None: + def symlink_to(self, linktarget: PathConvertible) -> None: """Create a symlink at self pointing to linktarget. Note that this method has its arguments reversed compared to the usual os.symlink, because the dir_fd is applicable to the second argument there. -- cgit v1.2.3