Skip to content

Commit 1e5cfcc

Browse files
committed
🧹 Autofixes by Black/ruff
1 parent 6cce9f5 commit 1e5cfcc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/mods4pandas/lib.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,15 @@ def fix_language_term(self) -> TagGroup:
196196
if e.text == "de":
197197
e.attrib["authority"] = "iso639-2b"
198198
e.text = "deu"
199-
warnings.warn("Changed languageTerm authority from rfc3066 to iso639-2b")
199+
warnings.warn(
200+
"Changed languageTerm authority from rfc3066 to iso639-2b"
201+
)
200202
return self
201203

202204
def add_missing_type_text(self) -> TagGroup:
203205
for e in self.group:
204206
# Default to type=text
205-
if not "type" in e.attrib:
207+
if "type" not in e.attrib:
206208
e.attrib["type"] = "text"
207209
warnings.warn("Added placeTerm type='text'")
208210
return self

0 commit comments

Comments
 (0)