Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
  • Loading branch information
barneygale and AA-Turner authored Aug 28, 2023
1 parent 42fe91a commit 8944098
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Lib/pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ class _PathBase(PurePath):
"""
__slots__ = ()
__bytes__ = None
__fspath__ = None
__fspath__ = None # virtual paths have no local file system representation

def stat(self, *, follow_symlinks=True):
"""
Expand Down Expand Up @@ -1190,8 +1190,8 @@ def walk(self, top_down=True, on_error=None, follow_symlinks=False):
paths += [path._make_child_relpath(d) for d in reversed(dirnames)]

def absolute(self):
"""Return an absolute version of this path by prepending the current
working directory. No normalization or symlink resolution is performed.
"""Return an absolute version of this path
No normalization or symlink resolution is performed.
Use resolve() to get the canonical path to a file.
"""
Expand All @@ -1210,8 +1210,7 @@ def expanduser(self):

@classmethod
def home(cls):
"""Return a new path pointing to the user's home directory (as
returned by os.path.expanduser('~')).
"""Return a new path pointing to expanduser('~').
"""
return cls("~").expanduser()

Expand Down

0 comments on commit 8944098

Please sign in to comment.