aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-10-27 15:52:19 -0700
committerBryan Newbold <bnewbold@archive.org>2020-10-27 15:52:19 -0700
commit58f89d645063415bb9e1d36102cbf4dfc45cffda (patch)
tree320d0579bc7ee106414748c5dd5534f0ac3b669b /python
parent689f495ef5c2317a3db356bca758d36073da4622 (diff)
downloadsandcrawler-58f89d645063415bb9e1d36102cbf4dfc45cffda.tar.gz
sandcrawler-58f89d645063415bb9e1d36102cbf4dfc45cffda.zip
grobid2json: fix deprecation warning
Diffstat (limited to 'python')
-rwxr-xr-xpython/grobid2json.py2
1 files changed, 1 insertions, 1 deletions
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