X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3e1e503e9fe0a2ad1fe7becb8102e3f760376794..84857c8e944af74ee5904db84149ab2ceef8bfef:/lib/dcparser/converters.py diff --git a/lib/dcparser/converters.py b/lib/dcparser/converters.py index b49c41735..85e41534b 100644 --- a/lib/dcparser/converters.py +++ b/lib/dcparser/converters.py @@ -30,6 +30,13 @@ def str_to_unicode(value, previous): return unicode(value) +def str_to_unicode_list(value, previous): + if previous is None: + previous = [] + previous.append(str_to_unicode(value)) + return previous + + def str_to_person(value, previous): comma_count = value.count(',')