We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cce9f5 commit 1e5cfccCopy full SHA for 1e5cfcc
src/mods4pandas/lib.py
@@ -196,13 +196,15 @@ def fix_language_term(self) -> TagGroup:
196
if e.text == "de":
197
e.attrib["authority"] = "iso639-2b"
198
e.text = "deu"
199
- warnings.warn("Changed languageTerm authority from rfc3066 to iso639-2b")
+ warnings.warn(
200
+ "Changed languageTerm authority from rfc3066 to iso639-2b"
201
+ )
202
return self
203
204
def add_missing_type_text(self) -> TagGroup:
205
for e in self.group:
206
# Default to type=text
- if not "type" in e.attrib:
207
+ if "type" not in e.attrib:
208
e.attrib["type"] = "text"
209
warnings.warn("Added placeTerm type='text'")
210
0 commit comments