diff options
| author | jmoore <josh@glencoesoftware.com> | 2021-11-23 09:58:52 +0100 |
|---|---|---|
| committer | jmoore <josh@glencoesoftware.com> | 2021-11-23 09:58:52 +0100 |
| commit | b4a7846dad72439b32cc2dada1dbdd0cd3373af9 (patch) | |
| tree | 8ba5ecda33658d04845a223d634a7951d0c20ab3 /test/jsonld/test_pythonparse.py | |
| parent | a6602ebd128620888c93f0882d6988d527dc6ec3 (diff) | |
| download | rdflib-b4a7846dad72439b32cc2dada1dbdd0cd3373af9.tar.gz | |
Run black
Diffstat (limited to 'test/jsonld/test_pythonparse.py')
| -rw-r--r-- | test/jsonld/test_pythonparse.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/jsonld/test_pythonparse.py b/test/jsonld/test_pythonparse.py index 907b91f8..01354757 100644 --- a/test/jsonld/test_pythonparse.py +++ b/test/jsonld/test_pythonparse.py @@ -49,6 +49,7 @@ def test_wrap(): assert isomorphic(g1, g2) + def walk(data, path=None): """ Some arbitrary operation on a Python data structure. @@ -67,10 +68,7 @@ def walk(data, path=None): if path[-1] == "@graph": replacement.append(walk(item, path)) else: - wrapper = { - "@type": "ListItemWrapper", - "ngff:position": idx - } + wrapper = {"@type": "ListItemWrapper", "ngff:position": idx} wrapper["ngff:item"] = walk(item, path + [idx]) replacement.append(wrapper) data = replacement |
