Skip to content

Commit

Permalink
Dependencies update Nov 2024 (#16)
Browse files Browse the repository at this point in the history
* updates pymarc (5.2.3), pytest (8.3.3), black (24.8.0), mypy (1.13)

* adds Indicators class introduced in pymarc 5.2.0

* syncs poetry.lock
  • Loading branch information
klinga authored Nov 13, 2024
1 parent cd89f82 commit 34e74cd
Show file tree
Hide file tree
Showing 6 changed files with 232 additions and 205 deletions.
6 changes: 3 additions & 3 deletions bookops_marc/bib.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from datetime import date
from typing import List, Optional, Dict

from pymarc import Record, Field
from pymarc import Record, Field, Indicators
from pymarc.constants import LEADER_LEN

from .errors import BookopsMarcError
Expand Down Expand Up @@ -191,14 +191,14 @@ def dewey(self) -> Optional[str]:

# check if LC full ed. present first
for field in fields:
if field.indicators == ["0", "0"]:
if field.indicators == Indicators("0", "0"):
class_mark = field.get(code="a").strip()
class_mark = normalize_dewey(class_mark)
return class_mark # type: ignore

# then other agency full ed.
for field in fields:
if field.indicators == ["0", "4"]:
if field.indicators == Indicators("0", "4"):
class_mark = field.get(code="a").strip()
class_mark = normalize_dewey(class_mark)
return class_mark # type: ignore
Expand Down
2 changes: 1 addition & 1 deletion bookops_marc/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class SierraBibReader(MARCReader):
"""
An interator class for reading file of local Sierra MARC records.
An iterator class for reading file of local Sierra MARC records.
"""

def __init__(
Expand Down
Loading

0 comments on commit 34e74cd

Please sign in to comment.