X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/cba76114f031d47c93e1af947a350230cbef0a1f..a5178216e32b433b9be6311c2d5f7a6e6fa1b1c5:/librarian/dcparser.py?ds=inline diff --git a/librarian/dcparser.py b/librarian/dcparser.py index eddd8e5..7dfcd21 100644 --- a/librarian/dcparser.py +++ b/librarian/dcparser.py @@ -25,7 +25,7 @@ class Person(object): @classmethod def from_text(cls, text): - parts = [ token.strip() for token in text.split(',') ] + parts = [ token.strip() for token in text.rsplit(',', 1) ] if len(parts) == 1: surname = parts[0] names = []