Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Delete duplicated docstring
  • Loading branch information
barneygale committed Feb 5, 2022
commit 94c41e550bdadbedb4ec7ee63e48bea7c2e9efe3
1 change: 0 additions & 1 deletion Lib/pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,6 @@ class PureWindowsPath(PurePath):
__slots__ = ()

def as_uri(self):
"""Return the path as a 'file' URI."""
if not self.is_absolute():
raise ValueError("relative path can't be expressed as a file URI")
# Under Windows, file URIs use the UTF-8 encoding.
Expand Down