summaryrefslogtreecommitdiff
path: root/test/jsonld/test_pythonparse.py
diff options
context:
space:
mode:
authorjmoore <josh@glencoesoftware.com>2021-11-23 09:58:52 +0100
committerjmoore <josh@glencoesoftware.com>2021-11-23 09:58:52 +0100
commitb4a7846dad72439b32cc2dada1dbdd0cd3373af9 (patch)
tree8ba5ecda33658d04845a223d634a7951d0c20ab3 /test/jsonld/test_pythonparse.py
parenta6602ebd128620888c93f0882d6988d527dc6ec3 (diff)
downloadrdflib-b4a7846dad72439b32cc2dada1dbdd0cd3373af9.tar.gz
Run black
Diffstat (limited to 'test/jsonld/test_pythonparse.py')
-rw-r--r--test/jsonld/test_pythonparse.py6
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