Skip to content

Commit

Permalink
fix typos (and warnings)
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Nov 25, 2024
1 parent 0c56a84 commit 4b3ab62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libmei/tools/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 ""

Expand Down

0 comments on commit 4b3ab62

Please sign in to comment.