From 666941d471dbd33ff2b7a55fd28ef5c29d9bd517 Mon Sep 17 00:00:00 2001 From: Fabien Benureau Date: Sun, 10 Jan 2016 22:04:55 +0100 Subject: [PATCH] Set bibtexparser homogenize_fields to True The default changed from True to False. It is not explicitly set. --- pubs/endecoder.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pubs/endecoder.py b/pubs/endecoder.py index 45ad275..4a50f51 100644 --- a/pubs/endecoder.py +++ b/pubs/endecoder.py @@ -38,6 +38,7 @@ def customizations(record): :param record: a record :returns: -- customized record """ + record = bp.customization.convert_to_unicode(record) record = bp.customization.type(record) record = bp.customization.author(record) @@ -115,7 +116,8 @@ class EnDecoder(object): """""" try: entries = bp.bparser.BibTexParser( - bibdata, customization=customizations).get_entry_dict() + bibdata, homogenize_fields=True, + customization=customizations).get_entry_dict() # Remove id from bibtexparser attribute which is stored as citekey for e in entries: entries[e].pop(BP_ID_KEY)