From 537659325664b47b01c24e82cb4a0e850cd129c0 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 9 Feb 2021 17:44:04 +0100 Subject: Modernize Python syntax with pyupgrade --py38-plus **/*.py --- tests/test_grobid2json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_grobid2json.py') diff --git a/tests/test_grobid2json.py b/tests/test_grobid2json.py index 345fd91..bd5c0e4 100644 --- a/tests/test_grobid2json.py +++ b/tests/test_grobid2json.py @@ -3,7 +3,7 @@ from fatcat_scholar.grobid2json import teixml2json def test_grobid_teixml2json() -> None: - with open("tests/files/example_grobid.tei.xml", "r") as f: + with open("tests/files/example_grobid.tei.xml") as f: blob = f.read() obj = teixml2json(blob, True) -- cgit v1.2.3