Skip to content

Commit

Permalink
Accept all PurePath not just Path
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Dec 15, 2021
1 parent 9996541 commit 8ea04a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scp.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def asbytes(s):
"""
if isinstance(s, bytes):
return s
elif pathlib and isinstance(s, pathlib.Path):
elif pathlib and isinstance(s, pathlib.PurePath):
return bytes(s)
else:
return s.encode('utf-8')
Expand Down

0 comments on commit 8ea04a0

Please sign in to comment.