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:
calvin 2003-08-11 11:54:26 +00:00
parent 8c1deec0c9
commit 3fb419154a
13 changed files with 33 additions and 33 deletions

View file

@ -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:

View file

@ -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)

View file

@ -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()

View file

@ -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'):

View file

@ -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"):

View file

@ -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',):

View file

@ -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',):

View file

@ -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',):

View file

@ -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',):

View file

@ -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',):

View file

@ -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'):

View file

@ -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',):

View file

@ -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',):