1
0
Fork 0
mirror of https://github.com/qurator-spk/modstool.git synced 2025-08-29 11:29:53 +02:00

🧹 Autofixes by Black/ruff

This commit is contained in:
Mike Gerber 2025-08-19 20:42:33 +02:00
parent 6cce9f512a
commit 1e5cfcc0e5

View file

@ -196,13 +196,15 @@ class TagGroup:
if e.text == "de":
e.attrib["authority"] = "iso639-2b"
e.text = "deu"
warnings.warn("Changed languageTerm authority from rfc3066 to iso639-2b")
warnings.warn(
"Changed languageTerm authority from rfc3066 to iso639-2b"
)
return self
def add_missing_type_text(self) -> TagGroup:
for e in self.group:
# Default to type=text
if not "type" in e.attrib:
if "type" not in e.attrib:
e.attrib["type"] = "text"
warnings.warn("Added placeTerm type='text'")
return self