Skip to content

Commit

Permalink
chore(scripts): Update ISBN parser to work with current ruamel.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Mar 14, 2024
1 parent b6fb48b commit b1c0967
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/isbn_format.py.in
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#!@PYTHON@

import sys
from ruamel import yaml
from ruamel import YAML
import isbnlib

yaml = YAML(typ="safe", pure=True)

metafile = sys.argv[1]
metadata = open(metafile, "r").read()
yamldata = yaml.safe_load(metadata)
yamldata = yaml.load(metadata)

identifier = {}

Expand Down

0 comments on commit b1c0967

Please sign in to comment.