Skip to content

Commit

Permalink
Replace urlunparse() with pathlib.as_uri()
Browse files Browse the repository at this point in the history
  • Loading branch information
damonlynch committed Oct 29, 2021
1 parent 341dea6 commit 483a917
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Changelog for Show in File Manager
==================================

1.1.0 (2022-10-XX)
1.1.0 (2022-10-29)
------------------
- On WSL2, use a Linux file manager (if set) for WSL paths, and Windows
Explorer for Windows paths. If no Linux file manager is installed, use
Expand Down Expand Up @@ -69,4 +69,4 @@ Changelog for Show in File Manager

0.0.1 (2021-08-12)
------------------
- Initial release.
- Initial release.
4 changes: 1 addition & 3 deletions src/showinfm/showinfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,7 @@ def show_in_file_manager(
# So open the parent instead.
path = path.parent
if uri:
uri = urllib.parse.urlunparse(
parse_result._replace(path=str(path))
)
uri = path.as_uri()
if uri is None:
path = tools.quote_path(path=path)
directories.append(uri or str(path))
Expand Down

0 comments on commit 483a917

Please sign in to comment.