mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-16 20:31:01 +00:00
more imports
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@835 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
558e06b574
commit
1382aebcc7
2 changed files with 5 additions and 4 deletions
|
|
@ -15,7 +15,8 @@
|
|||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
import urlparse, urllib, sys, time, re, httplib
|
||||
import urlparse, sys, time, re, httplib
|
||||
from urllib import unquote
|
||||
import Config, StringUtil, i18n
|
||||
from linkcheck import robotparser
|
||||
from debug import *
|
||||
|
|
@ -124,7 +125,7 @@ class HttpUrlData (ProxyUrlData):
|
|||
newurl = self.headers.getheader("Location",
|
||||
self.headers.getheader("Uri", ""))
|
||||
redirected = urlparse.urljoin(redirected, newurl)
|
||||
redirected = urllib.unquote(redirected)
|
||||
redirected = unquote(redirected)
|
||||
self.urlparts = urlparse.urlsplit(redirected)
|
||||
response = self._getHttpResponse()
|
||||
self.headers = response.msg
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
import sys, re, urlparse, urllib, time, traceback, socket, select, i18n
|
||||
from urllib import splituser, splithost, splitport
|
||||
from urllib import splituser, splithost, splitport, unquote
|
||||
#try:
|
||||
# from linkcheck import DNS
|
||||
#except ImportError:
|
||||
|
|
@ -175,7 +175,7 @@ class UrlData:
|
|||
else:
|
||||
self.url = self.urlName
|
||||
# unquote url
|
||||
self.url = urllib.unquote(self.url)
|
||||
self.url = unquote(self.url)
|
||||
# split into (modifiable) list
|
||||
self.urlparts = list(urlparse.urlsplit(self.url))
|
||||
# check userinfo@host:port syntax
|
||||
|
|
|
|||
Loading…
Reference in a new issue