From 58f89d645063415bb9e1d36102cbf4dfc45cffda Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 27 Oct 2020 15:52:19 -0700 Subject: grobid2json: fix deprecation warning --- python/grobid2json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/grobid2json.py b/python/grobid2json.py index 0eae6fe..a22d47d 100755 --- a/python/grobid2json.py +++ b/python/grobid2json.py @@ -59,7 +59,7 @@ def all_authors(elem: Optional[ET.Element]) -> List[Dict[str, Any]]: addr_e = ae.find("./{%s}address" % ns) if addr_e: address = dict() - for t in addr_e.getchildren(): + for t in addr_e: address[t.tag.split("}")[-1]] = t.text if address: affiliation["address"] = address -- cgit v1.2.3