mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-15 01:53:09 +00:00
Remove isinstance() from fileutil.path_safe()
paths are derived from urls which are strings.
This commit is contained in:
parent
f86e506de4
commit
8f9f687ed8
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ else:
|
|||
|
||||
def path_safe(path):
|
||||
"""Ensure path string is compatible with the platform file system encoding."""
|
||||
if isinstance(path, str) and not os.path.supports_unicode_filenames:
|
||||
if path and not os.path.supports_unicode_filenames:
|
||||
path = path.encode(FSCODING, "replace").decode(FSCODING)
|
||||
return path
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue