From: Marek Stępniowski Date: Sat, 6 Sep 2008 17:05:36 +0000 (+0200) Subject: Squashed bugs in ParserError class definition and in str_to_unicode_list converter. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/87ff0a2df51103379aee4fe2724e90f3e690ef03?hp=4134312db600f1a86fd8f0f9cfb7b0b9d58fba78 Squashed bugs in ParserError class definition and in str_to_unicode_list converter. --- diff --git a/lib/librarian/dcparser.py b/lib/librarian/dcparser.py index 9281325c6..871ff3a92 100644 --- a/lib/librarian/dcparser.py +++ b/lib/librarian/dcparser.py @@ -45,7 +45,7 @@ def str_to_unicode(value, previous): def str_to_unicode_list(value, previous): if previous is None: previous = [] - previous.append(str_to_unicode(value)) + previous.append(str_to_unicode(value, None)) return previous @@ -76,7 +76,7 @@ def str_to_date(value, previous): # ========== class ParseError(Exception): def __init__(self, message): - super(self, Exception).__init__(message) + super(ParseError, self).__init__(message) class XMLNamespace(object):