示例#1
0
    def __init__(self,
                 encoding=None,
                 macros=month_names,
                 person_fields=Person.valid_roles,
                 keyless_entries=False,
                 **kwargs):
        BaseParser.__init__(self, encoding, **kwargs)

        self.macros = CaseInsensitiveDict(macros)
        self.person_fields = CaseInsensitiveSet(person_fields)
        self.keyless_entries = keyless_entries
示例#2
0
文件: bibtex.py 项目: chfritz/pybtex
    def __init__(self,
            encoding=None,
            macros=month_names,
            person_fields=Person.valid_roles,
            keyless_entries=False,
            **kwargs
        ):
        BaseParser.__init__(self, encoding, **kwargs)

        self.macros = dict(macros)
        self.person_fields = person_fields
        self.keyless_entries = keyless_entries