mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-29 18:44:43 +00:00
Revert "Python3: fix opening file URLs"
This reverts commit 4c9ec511b5.
This commit is contained in:
parent
07cf9c1c11
commit
2776eb5f52
1 changed files with 1 additions and 5 deletions
|
|
@ -20,7 +20,6 @@ Handle local file: links.
|
|||
|
||||
import re
|
||||
import os
|
||||
import sys
|
||||
try:
|
||||
import urlparse
|
||||
except ImportError:
|
||||
|
|
@ -193,10 +192,7 @@ class FileUrl (urlbase.UrlBase):
|
|||
if self.is_directory():
|
||||
self.set_result(_("directory"))
|
||||
else:
|
||||
if sys.version_info.major < 3:
|
||||
url = fileutil.pathencode(self.url)
|
||||
else:
|
||||
url = self.url
|
||||
url = fileutil.pathencode(self.url)
|
||||
self.url_connection = urlopen(url)
|
||||
self.check_case_sensitivity()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue