diff options
author | Christian Clauss <cclauss@me.com> | 2021-02-09 17:44:04 +0100 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2021-02-23 15:19:48 -0800 |
commit | 537659325664b47b01c24e82cb4a0e850cd129c0 (patch) | |
tree | bb7c93162d9f586a8bec17608cf7eceb11d47cf0 /tests/test_djvu_parse.py | |
parent | 5878aa63118388361f353ca4f2f6c49a14a58b56 (diff) | |
download | fatcat-scholar-537659325664b47b01c24e82cb4a0e850cd129c0.tar.gz fatcat-scholar-537659325664b47b01c24e82cb4a0e850cd129c0.zip |
Modernize Python syntax with pyupgrade --py38-plus **/*.py
Diffstat (limited to 'tests/test_djvu_parse.py')
-rw-r--r-- | tests/test_djvu_parse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_djvu_parse.py b/tests/test_djvu_parse.py index 777f8bf..f661f33 100644 --- a/tests/test_djvu_parse.py +++ b/tests/test_djvu_parse.py @@ -5,7 +5,7 @@ from fatcat_scholar.djvu import djvu_extract_leaf_texts def test_djvu_extract_leaf_texts() -> None: # https://archive.org/details/ERIC_ED441501 - with open("tests/files/ERIC_ED441501_djvu.xml", "r") as f: + with open("tests/files/ERIC_ED441501_djvu.xml") as f: blob = f.read() leaves = djvu_extract_leaf_texts(io.StringIO(blob), [3, 6]) |