fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4134312
)
Squashed bugs in ParserError class definition and in str_to_unicode_list converter.
author
Marek Stępniowski
<marek@stepniowski.com>
Sat, 6 Sep 2008 17:05:36 +0000
(19:05 +0200)
committer
Marek Stępniowski
<marek@stepniowski.com>
Sat, 6 Sep 2008 17:05:36 +0000
(19:05 +0200)
lib/librarian/dcparser.py
patch
|
blob
|
history
diff --git
a/lib/librarian/dcparser.py
b/lib/librarian/dcparser.py
index
9281325
..
871ff3a
100644
(file)
--- 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 = []
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
return previous
@@
-76,7
+76,7
@@
def str_to_date(value, previous):
# ==========
class ParseError(Exception):
def __init__(self, message):
# ==========
class ParseError(Exception):
def __init__(self, message):
- super(
self, Exception
).__init__(message)
+ super(
ParseError, self
).__init__(message)
class XMLNamespace(object):
class XMLNamespace(object):