documentation syntax

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2163 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2005-01-19 15:08:02 +00:00
parent 255b698f44
commit 647d7167ee
64 changed files with 214 additions and 185 deletions

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Default HTML parser handler classes.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Default HTML parser handler classes.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Default HTML parser handler classes.
"""
import sys

View file

@ -1,5 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""main function module for link checking"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -15,6 +14,9 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Main function module for link checking.
"""
# imports and checks
import sys

View file

@ -1,5 +1,21 @@
# -*- coding: iso-8859-1 -*-
"""ANSI Color definitions and functions.
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
ANSI Color definitions and functions.
From Term::ANSIColor, applies also to this module:
@ -61,21 +77,6 @@ The current version of this module is always available from its web site at
http://www.eyrie.org/~eagle/software/ansicolor/. It is also part of the Perl
core distribution as of 5.6.0.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
import os
import logging

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Main functions for link checking.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Main functions for link checking.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Main functions for link checking.
"""
import time
import sys

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Store cached data during checking.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Store cached data during checking.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Store cached data during checking.
"""
import Cookie
try:

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Url consumer class.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Url consumer class.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Url consumer class.
"""
import sys
import time

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Handle for unknown links.
"""
# Copyright (C) 2001-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,9 +14,11 @@ Handle for unknown links.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Handle for unknown links.
"""
import urlbase
import linkcheck
class ErrorUrl (urlbase.UrlBase):

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Handle local file: links.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Handle local file: links.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Handle local file: links.
"""
import re
import os

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Handle FTP links.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Handle FTP links.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Handle FTP links.
"""
import ftplib
import time

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Handle Gopher links.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Handle Gopher links.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Handle Gopher links.
"""
import urlbase

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Handle https links.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Handle https links.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Handle https links.
"""
import httpurl

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Handle http links.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Handle http links.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Handle http links.
"""
import urlparse
import sys

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Handle for uncheckable application-specific links.
"""
# Copyright (C) 2001-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Handle for uncheckable application-specific links.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Handle for uncheckable application-specific links.
"""
import urlbase

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Handle for mailto: links.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Handle for mailto: links.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Handle for mailto: links.
"""
import sys
import cgi

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Handle nntp: and news: links.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Handle nntp: and news: links.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Handle nntp: and news: links.
"""
import re
import time

View file

@ -14,6 +14,9 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Mixin class for URLs that can be fetched over a proxy.
"""
import urllib

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Handle telnet: links.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Handle telnet: links.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Handle telnet: links.
"""
import telnetlib
import urlparse

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Base URL handler.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Base URL handler.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Base URL handler.
"""
import sys
import os

View file

@ -1,5 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""store metadata and options"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -15,6 +14,9 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Store metadata and options.
"""
import ConfigParser
import sys

View file

@ -1,5 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""special container classes"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -15,6 +14,9 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Special container classes.
"""
class SetList (list):

View file

@ -1,4 +1,4 @@
The following changes were made to the original dnspython 1.3.1
The following changes were made to the original dnspython 1.3.2
sources:
* moved everything into the linkcheck package
@ -21,7 +21,7 @@ sources:
* added set of localhost addresses to resolver config
Changed: resolver.py
Added: IfConfig.py
Added: ifconfig.py
* added search patters for domain names
Changed: resolver.py

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Define standard test support classes funtional for LinkChecker tests.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Define standard test support classes funtional for LinkChecker tests.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Define standard test support classes funtional for LinkChecker tests.
"""
import os
import codecs

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Define http test support classes for LinkChecker tests.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Define http test support classes for LinkChecker tests.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Define http test support classes for LinkChecker tests.
"""
import SimpleHTTPServer
import BaseHTTPServer

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Test html anchor parsing and checking.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Test html anchor parsing and checking.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Test html anchor parsing and checking.
"""
import unittest

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Test html <base> tag parsing.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Test html <base> tag parsing.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Test html <base> tag parsing.
"""
import unittest

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Test error checking.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Test error checking.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Test error checking.
"""
import unittest

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Test file parsing.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Test file parsing.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Test file parsing.
"""
import unittest
import os

View file

@ -1,5 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""test html <frame> tag parsing"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -15,6 +14,9 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Test html <frame> tag parsing.
"""
import unittest

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Test ftp checking.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Test ftp checking.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Test ftp checking.
"""
import unittest

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Test http checking.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Test http checking.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Test http checking.
"""
import unittest
import os

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Test news checking.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Test news checking.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Test news checking.
"""
import unittest

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Test mail checking.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Test mail checking.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Test mail checking.
"""
import unittest

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Test news checking.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Test news checking.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Test news checking.
"""
import unittest

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Test HTML robots.txt parsing.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Test HTML robots.txt parsing.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Test HTML robots.txt parsing.
"""
import unittest
import os

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Test telnet checking.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Test telnet checking.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Test telnet checking.
"""
import unittest

View file

@ -1,5 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""application internationalization support"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -15,6 +14,9 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Application internationalization support.
"""
# i18n suppport
import os

View file

@ -1,5 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""common CGI functions used by the CGI scripts"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -15,6 +14,9 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Common CGI functions used by the CGI scripts.
"""
import sys
import os

View file

@ -1,5 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""parse name of common link types"""
# Copyright (C) 2001-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -15,6 +14,9 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Parse name of common link types.
"""
import re
import linkcheck

View file

@ -1,5 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""Find link tags in HTML text"""
# Copyright (C) 2001-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -15,6 +14,9 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Find link tags in HTML text.
"""
import re
import linkcheck

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Logging and debug functions.
"""
# Copyright (C) 2003-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Logging and debug functions.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Logging and debug functions.
"""
# public api
__all__ = ["debug", "info", "warn", "error", "critical", "exception", ]

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Output logging support for different formats.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Output logging support for different formats.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Output logging support for different formats.
"""
import sys
import os

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
A blacklist logger.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ A blacklist logger.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
A blacklist logger.
"""
import sys
import os

View file

@ -1,5 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""A CSV logger."""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -15,6 +14,9 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
A CSV logger.
"""
import time
import csv

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
A gml logger.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ A gml logger.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
A gml logger.
"""
import time
import os

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
A HTML logger.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ A HTML logger.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
A HTML logger.
"""
import time
import cgi

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
A dummy logger.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ A dummy logger.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
A dummy logger.
"""
import linkcheck.logger

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
A SQL logger.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ A SQL logger.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
A SQL logger.
"""
import time
import os

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
The default text logger.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ The default text logger.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
The default text logger.
"""
import sys
import os

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
An xml logger.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ An xml logger.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
An xml logger.
"""
import os
import time

View file

@ -1,10 +1,10 @@
# -*- coding: iso-8859-1 -*-
""" Copied from the Python Cookbook recipe at
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/286222
To find the memory usage in a particular section of code these
functions are typically used as follows:
"""
Copied from the Python Cookbook recipe at
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/286222
To find the memory usage in a particular section of code these
functions are typically used as follows:
m0 = memory()
...
m1 = memory(m0)

View file

@ -1,9 +1,4 @@
"""
robotparser.py
The robots.txt Exclusion Protocol is implemented as specified in
http://www.robotstxt.org/wc/norobots-rfc.html
"""
# -*- coding: iso-8859-1 -*-
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -19,6 +14,13 @@ http://www.robotstxt.org/wc/norobots-rfc.html
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
robotparser.py
The robots.txt Exclusion Protocol is implemented as specified in
http://www.robotstxt.org/wc/norobots-rfc.html
"""
import urlparse
import httplib
import urllib

View file

@ -1,8 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Various string utility functions. Note that these functions are not
necessarily optimised for large strings, so use with care.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -18,6 +14,10 @@ necessarily optimised for large strings, so use with care.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Various string utility functions. Note that these functions are not
necessarily optimised for large strings, so use with care.
"""
import re
import textwrap

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Unit tests for the linkcheck module.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Unit tests for the linkcheck module.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Unit tests for the linkcheck module.
"""
import linkcheck
linkcheck.init_i18n()

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Test cgi form routines.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Test cgi form routines.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Test cgi form routines.
"""
import unittest
import linkcheck.lc_cgi

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Test container routines.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Test container routines.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Test container routines.
"""
import unittest
import random

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Test filename routines.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Test filename routines.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Test filename routines.
"""
import unittest
import os

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Test linkname routines.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Test linkname routines.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Test linkname routines.
"""
import unittest
import linkcheck.linkname

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Test html parsing.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Test html parsing.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Test html parsing.
"""
import linkcheck.HtmlParser
import linkcheck.HtmlParser.htmlsax

View file

@ -14,6 +14,9 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Test robots.txt parsing.
"""
import unittest

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Test string formatting operations.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Test string formatting operations.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Test string formatting operations.
"""
import unittest
import os

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Test url routines.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Test url routines.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Test url routines.
"""
import unittest
import os

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Test url build method from url data objects.
"""
# Copyright (C) 2004-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Test url build method from url data objects.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Test url build method from url data objects.
"""
import unittest
import linkcheck.checker.httpurl

View file

@ -1,5 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""Threading support"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -15,6 +14,10 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Threading support.
"""
import time
try:
import threading

View file

@ -1,7 +1,4 @@
# -*- coding: iso-8859-1 -*-
"""
Functions for parsing and matching URL strings.
"""
# Copyright (C) 2000-2005 Bastian Kleineidam
#
# This program is free software; you can redistribute it and/or modify
@ -17,6 +14,9 @@ Functions for parsing and matching URL strings.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
Functions for parsing and matching URL strings.
"""
import re
import os