mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-04 12:54:42 +00:00
see changelog
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@356 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
d203664c0f
commit
5d50f430d4
6 changed files with 19 additions and 9 deletions
|
|
@ -15,7 +15,7 @@ import DNS.Type
|
|||
import DNS.Class
|
||||
import DNS.Opcode
|
||||
import DNS.Status
|
||||
|
||||
from DNS import Error
|
||||
|
||||
# Low-level 16 and 32 bit integer packing and unpacking
|
||||
|
||||
|
|
@ -49,7 +49,7 @@ def bin2addr(n):
|
|||
|
||||
# Packing class
|
||||
|
||||
class PackError(Exception):
|
||||
class PackError(Error):
|
||||
pass
|
||||
|
||||
class Packer:
|
||||
|
|
@ -141,7 +141,7 @@ class Packer:
|
|||
|
||||
# Unpacking class
|
||||
|
||||
class UnpackError(Exception):
|
||||
class UnpackError(Error):
|
||||
pass
|
||||
|
||||
class Unpacker:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
# __init__.py for DNS class.
|
||||
|
||||
Error='DNS API error'
|
||||
class Error(Exception):
|
||||
def __str__ (self):
|
||||
return 'DNS API error'
|
||||
|
||||
import Type,Opcode,Status,Class
|
||||
from Base import *
|
||||
from Lib import *
|
||||
|
|
|
|||
8
debian/changelog
vendored
8
debian/changelog
vendored
|
|
@ -1,3 +1,11 @@
|
|||
linkchecker (1.3.16) unstable; urgency=low
|
||||
|
||||
* DNS/Lib.py: make PackError and UnpackError subclasses of DNS.Error
|
||||
* linkcheck/MailUrlData.py: make mail parsing less strict to cope with
|
||||
malformed emails
|
||||
|
||||
-- Bastian Kleineidam <calvin@debian.org> Mon, 28 Jan 2002 18:03:05 +0100
|
||||
|
||||
linkchecker (1.3.15) unstable; urgency=low
|
||||
|
||||
* po/de.po: forgot a %d format in the german translation of 'server
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@ from linkcheck import _
|
|||
from debuglevels import *
|
||||
|
||||
# regular expression for RFC2368 compliant mailto: scanning
|
||||
word = r"[-a-zA-Z0-9,./%]+"
|
||||
headers = r"\?(%s=%s(&%s=%s)*)$" % (word, word, word, word)
|
||||
headers_re = re.compile(headers)
|
||||
headers_re = re.compile(r"\?(.+)$")
|
||||
|
||||
# parse /etc/resolv.conf (on UNIX systems)
|
||||
# or read entries from the registry (Windows systems)
|
||||
|
|
@ -38,7 +36,7 @@ class MailtoUrlData(HostCheckingUrlData):
|
|||
HostCheckingUrlData.buildUrl(self)
|
||||
self.headers = {}
|
||||
self.adresses = AddressList(self._cutout_adresses()).addresslist
|
||||
for key in ["to","cc","bcc"]:
|
||||
for key in ("to","cc","bcc"):
|
||||
if self.headers.has_key(key):
|
||||
for val in self.headers[key]:
|
||||
a = urllib.unquote(val)
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -129,7 +129,7 @@ myname = "Bastian Kleineidam"
|
|||
myemail = "calvin@users.sourceforge.net"
|
||||
|
||||
setup (name = "linkchecker",
|
||||
version = "1.3.15",
|
||||
version = "1.3.16",
|
||||
description = "check HTML documents for broken links",
|
||||
author = myname,
|
||||
author_email = myemail,
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
<a href="mailto:">6</a>
|
||||
<a href="mailto:o'hara@cs.uni-sb.de">5</a>
|
||||
<a href="mailto:?to=calvin@studcs.uni-sb.de?subject=blubb">...</a>
|
||||
<a href="mailto:news-admins@freshmeat.net?subject=Re:%20[fm%20#11093]%20(news-admins)%20Submission%20report%20-%20Pretty%20CoLoRs">...</a>
|
||||
<a href="mailto:jan@jan-dittberner.de?subject=test">...</a>
|
||||
<!-- illegal -->
|
||||
<!-- contains non-quoted characters -->
|
||||
|
|
|
|||
Loading…
Reference in a new issue