From 4b3ab625a8d0e6bfbc798530af1c4e9802c470e6 Mon Sep 17 00:00:00 2001 From: Klaus Rettinghaus Date: Mon, 25 Nov 2024 13:12:28 +0100 Subject: [PATCH] fix typos (and warnings) --- libmei/tools/schema.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libmei/tools/schema.py b/libmei/tools/schema.py index 6d9ba39bd1e..dd38620c7d8 100644 --- a/libmei/tools/schema.py +++ b/libmei/tools/schema.py @@ -24,7 +24,7 @@ def __init__(self, oddfile, resolve_elements=False): # self.customization = etree.parse(customization_file) self.active_modules = [] # the modules active in the resulting output - self.element_structure = {} # the element structure. + self.element_structure = {} # the element structure self.attribute_group_structure = {} # the attribute group structure # inverted, so we can map attgroups to modules @@ -237,9 +237,9 @@ def cc(self, att_name: str) -> str: def get_att_desc(self, att_name: str) -> str: """ - Returns the documentation string for an attribute by name. + Return the documentation string for an attribute by name. """ - desc = self.schema.find(f"//tei:attDef[@ident='{att_name}']/tei:desc", namespaces=TEI_NS) + desc = self.schema.find(f".//tei:attDef[@ident='{att_name}']/tei:desc", namespaces=TEI_NS) if desc is None: return ""