mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-22 15:14:44 +00:00
more boolean stuff
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@999 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
8c1deec0c9
commit
3fb419154a
13 changed files with 33 additions and 33 deletions
|
|
@ -297,7 +297,7 @@ class HttpUrlData (ProxyUrlData):
|
|||
else:
|
||||
path = urlparse.urlunsplit(('', '', qurlparts[2],
|
||||
qurlparts[3], qurlparts[4]))
|
||||
self.urlConnection.putrequest(method, path, skip_host=1)
|
||||
self.urlConnection.putrequest(method, path, skip_host=True)
|
||||
self.urlConnection.putheader("Host", host)
|
||||
# userinfo is from http://user@pass:host/
|
||||
if self.userinfo:
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ class MailtoUrlData (HostCheckingUrlData):
|
|||
def _cutout_adresses (self):
|
||||
mo = headers_re.search(self.urlName)
|
||||
if mo:
|
||||
headers = cgi.parse_qs(mo.group(1), strict_parsing=1)
|
||||
headers = cgi.parse_qs(mo.group(1), strict_parsing=True)
|
||||
for key, val in headers.items():
|
||||
key = key.lower()
|
||||
self.headers.setdefault(key, []).extend(val)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ def main (url):
|
|||
path = urlparse.urlunsplit(('', '', parts[2], parts[3], parts[4]))
|
||||
h = httplib.HTTPConnection(host)
|
||||
h.connect()
|
||||
h.putrequest("HEAD", path, skip_host=1)
|
||||
h.putrequest("HEAD", path, skip_host=True)
|
||||
h.putheader("Host", host)
|
||||
h.endheaders()
|
||||
req = h.getresponse()
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
import os, linkcheck
|
||||
config = linkcheck.Config.Configuration()
|
||||
config.addLogger('test', linkcheck.test_support.TestLogger)
|
||||
config['recursionlevel'] = 1
|
||||
config['recursionlevel'] = True
|
||||
config['log'] = config.newLogger('test')
|
||||
config["anchors"] = 1
|
||||
config["verbose"] = 1
|
||||
config["anchors"] = True
|
||||
config["verbose"] = True
|
||||
config.disableThreading()
|
||||
htmldir = "test/html"
|
||||
for file in ('base1.html','base2.html', 'codebase.html'):
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
import os, linkcheck
|
||||
config = linkcheck.Config.Configuration()
|
||||
config.addLogger('test', linkcheck.test_support.TestLogger)
|
||||
config['recursionlevel'] = 1
|
||||
config['recursionlevel'] = True
|
||||
config['log'] = config.newLogger('test')
|
||||
config["anchors"] = 1
|
||||
config["verbose"] = 1
|
||||
config["anchors"] = True
|
||||
config["verbose"] = True
|
||||
config.disableThreading()
|
||||
htmldir = "test/html"
|
||||
for file in ('file.html',"file.txt","file.asc"):
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
import os, linkcheck
|
||||
config = linkcheck.Config.Configuration()
|
||||
config.addLogger('test', linkcheck.test_support.TestLogger)
|
||||
config['recursionlevel'] = 1
|
||||
config['recursionlevel'] = True
|
||||
config['log'] = config.newLogger('test')
|
||||
config["anchors"] = 1
|
||||
config["verbose"] = 1
|
||||
config["anchors"] = True
|
||||
config["verbose"] = True
|
||||
config.disableThreading()
|
||||
htmldir = "test/html"
|
||||
for file in ('frames.html',):
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
import os, linkcheck
|
||||
config = linkcheck.Config.Configuration()
|
||||
config.addLogger('test', linkcheck.test_support.TestLogger)
|
||||
config['recursionlevel'] = 1
|
||||
config['recursionlevel'] = True
|
||||
config['log'] = config.newLogger('test')
|
||||
config["anchors"] = 1
|
||||
config["verbose"] = 1
|
||||
config["anchors"] = True
|
||||
config["verbose"] = True
|
||||
config.disableThreading()
|
||||
htmldir = "test/html"
|
||||
for file in ('ftp.html',):
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
import os, linkcheck
|
||||
config = linkcheck.Config.Configuration()
|
||||
config.addLogger('test', linkcheck.test_support.TestLogger)
|
||||
config['recursionlevel'] = 1
|
||||
config['recursionlevel'] = True
|
||||
config['log'] = config.newLogger('test')
|
||||
config["anchors"] = 1
|
||||
config["verbose"] = 1
|
||||
config["anchors"] = True
|
||||
config["verbose"] = True
|
||||
config.disableThreading()
|
||||
htmldir = "test/html"
|
||||
for file in ('http.html',):
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
import os, linkcheck
|
||||
config = linkcheck.Config.Configuration()
|
||||
config.addLogger('test', linkcheck.test_support.TestLogger)
|
||||
config['recursionlevel'] = 1
|
||||
config['recursionlevel'] = True
|
||||
config['log'] = config.newLogger('test')
|
||||
config["anchors"] = 1
|
||||
config["verbose"] = 1
|
||||
config["anchors"] = True
|
||||
config["verbose"] = True
|
||||
config.disableThreading()
|
||||
htmldir = "test/html"
|
||||
for file in ('https.html',):
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
import os, linkcheck
|
||||
config = linkcheck.Config.Configuration()
|
||||
config.addLogger('test', linkcheck.test_support.TestLogger)
|
||||
config['recursionlevel'] = 1
|
||||
config['recursionlevel'] = True
|
||||
config['log'] = config.newLogger('test')
|
||||
config["anchors"] = 1
|
||||
config["verbose"] = 1
|
||||
config["anchors"] = True
|
||||
config["verbose"] = True
|
||||
config.disableThreading()
|
||||
htmldir = "test/html"
|
||||
for file in ('mail.html',):
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
import os, linkcheck
|
||||
config = linkcheck.Config.Configuration()
|
||||
config.addLogger('test', linkcheck.test_support.TestLogger)
|
||||
config['recursionlevel'] = 1
|
||||
config['recursionlevel'] = True
|
||||
config['log'] = config.newLogger('test')
|
||||
config["anchors"] = 1
|
||||
config["verbose"] = 1
|
||||
config["anchors"] = True
|
||||
config["verbose"] = True
|
||||
config.disableThreading()
|
||||
htmldir = "test/html"
|
||||
for file in ('misc.html','anchor.html'):
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
import os, linkcheck
|
||||
config = linkcheck.Config.Configuration()
|
||||
config.addLogger('test', linkcheck.test_support.TestLogger)
|
||||
config['recursionlevel'] = 1
|
||||
config['recursionlevel'] = True
|
||||
config['log'] = config.newLogger('test')
|
||||
config["anchors"] = 1
|
||||
config["verbose"] = 1
|
||||
config["anchors"] = True
|
||||
config["verbose"] = True
|
||||
config.disableThreading()
|
||||
htmldir = "test/html"
|
||||
for file in ('news.html',):
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
import os, linkcheck
|
||||
config = linkcheck.Config.Configuration()
|
||||
config.addLogger('test', linkcheck.test_support.TestLogger)
|
||||
config['recursionlevel'] = 1
|
||||
config['recursionlevel'] = True
|
||||
config['log'] = config.newLogger('test')
|
||||
config["anchors"] = 1
|
||||
config["verbose"] = 1
|
||||
config["anchors"] = True
|
||||
config["verbose"] = True
|
||||
config.disableThreading()
|
||||
htmldir = "test/html"
|
||||
for file in ('telnet.html',):
|
||||
|
|
|
|||
Loading…
Reference in a new issue