From ffb0a68ff72529c41e506a891168c08d19430927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Dlouh=C3=BD?= Date: Fri, 5 Jan 2018 20:30:44 +0100 Subject: [PATCH] Python3: fix fileurl --- linkcheck/checker/fileurl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkcheck/checker/fileurl.py b/linkcheck/checker/fileurl.py index 76bb4462..9984d866 100644 --- a/linkcheck/checker/fileurl.py +++ b/linkcheck/checker/fileurl.py @@ -83,7 +83,7 @@ def get_os_filename (path): """Return filesystem path for given URL path.""" if os.name == 'nt': path = prepare_urlpath_for_nt(path) - res = urlrequest.url2pathname(fileutil.pathencode(path)) + res = urlrequest.url2pathname(urlutil.decode_for_unquote(fileutil.pathencode(path))) if os.name == 'nt' and res.endswith(':') and len(res) == 2: # Work around http://bugs.python.org/issue11474 res += os.sep