Set copyright year and add missing docstrings.

This commit is contained in:
Bastian Kleineidam 2011-12-25 08:45:27 +01:00
parent a19893a6ba
commit 1c26c14b64
9 changed files with 21 additions and 13 deletions

View file

@ -61,6 +61,8 @@ def parse_bookmark_data (data):
def get_plist_data_from_file (filename):
"""Parse plist data for a file. Tries biplist, falling back to
plistlib."""
if has_biplist:
return biplist.readPlist(filename)
# fall back to normal plistlist
@ -72,6 +74,8 @@ def get_plist_data_from_file (filename):
def get_plist_data_from_string (data):
"""Parse plist data for a string. Tries biplist, falling back to
plistlib."""
if has_biplist:
return biplist.readPlistFromString(data)
# fall back to normal plistlist
@ -106,4 +110,5 @@ def is_leaf (entry):
def has_children (entry):
"""Return true if plist entry has children."""
return entry.get(KEY_WEBBOOKMARKTYPE) == 'WebBookmarkTypeList'

View file

@ -1,5 +1,5 @@
# -*- coding: iso-8859-1 -*-
# Copyright (C) 2006-2009 Bastian Kleineidam
# Copyright (C) 2006-2011 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
@ -48,6 +48,7 @@ class LoggedCheckedTask (CheckedTask):
"""URL check task with a logger instance and internal error handling."""
def __init__ (self, logger):
"""Initialize super instance and store given logger."""
super(CheckedTask, self).__init__()
self.logger = logger

View file

@ -73,6 +73,8 @@ def get_icon (name):
def warninglines2regex(lines):
"""Convert a list of strings to a regular expression matching any of
the given strings."""
return u"|".join([re.escape(line) for line in lines])

View file

@ -1,5 +1,5 @@
# -*- coding: iso-8859-1 -*-
# Copyright (C) 2000-2010 Bastian Kleineidam
# Copyright (C) 2000-2011 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

View file

@ -1,5 +1,5 @@
# -*- coding: iso-8859-1 -*-
# Copyright (C) 2000-2010 Bastian Kleineidam
# Copyright (C) 2000-2011 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

View file

@ -1,6 +1,6 @@
Project: LinkChecker
Version: 7.2
Release-Focus: Minor bugfixes
Version: 7.3
Release-Focus: Minor feature enhancements
Hide: N
Website-URL: http://linkchecker.sourceforge.net/
Changelog-URL: http://linkchecker.git.sourceforge.net/git/gitweb.cgi?p=linkchecker/linkchecker;a=blob;f=doc/changelog.txt;hb=HEAD
@ -8,9 +8,9 @@ Source-Package-URL: http://downloads.sourceforge.net/linkchecker/LinkChecker-${v
Debian-Package-URL: http://packages.debian.org/linkchecker
GIT-Tree-URL: http://linkchecker.git.sourceforge.net/
Windows-installer-URL: http://downloads.sourceforge.net/linkchecker/LinkChecker-${version}.exe
OSX-installer-URL: http://downloads.sourceforge.net/linkchecker/LinkChecker-${version}.dmg
Bugs were fixed for HTML and FTP character encoding detection,
SQL output and HTML validation with the W3C validator.
The GUI now allows configuration of a warning regular expression for
page contents.
The GUI option dialog has been redesigned and allows now configuration
of ignore URL patterns.
Parsing of Safari Bookmark files has been added.
Bugs were fixed for Unicode hostname parsing, GUI result file saving
and the commandline script return code.

View file

@ -1,5 +1,5 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Bastian Kleineidam <calvin@users.sourceforge.net>
# Copyright (C) 2011 Bastian Kleineidam <calvin@users.sourceforge.net>
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#

View file

@ -1,5 +1,5 @@
# -*- coding: iso-8859-1 -*-
# Copyright (C) 2010 Bastian Kleineidam
# Copyright (C) 2010-2011 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

View file

@ -1,5 +1,5 @@
# -*- coding: iso-8859-1 -*-
# Copyright (C) 2004-2010 Bastian Kleineidam
# Copyright (C) 2004-2011 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