Skip to content

Commit 7d33921

Browse files
committed
Call accessor.getcwd() from only one method.
1 parent 0b58bac commit 7d33921

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/pathlib.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,9 +1055,7 @@ def absolute(self):
10551055
# XXX untested yet!
10561056
if self.is_absolute():
10571057
return self
1058-
# FIXME this must defer to the specific flavour (and, under Windows,
1059-
# use nt._getfullpathname())
1060-
return self._from_parts([self._accessor.getcwd()] + self._parts)
1058+
return self._from_parts([self.cwd()] + self._parts)
10611059

10621060
def resolve(self, strict=False):
10631061
"""

0 commit comments

Comments
 (0)