summaryrefslogtreecommitdiff
path: root/examples/resource_example.py
diff options
context:
space:
mode:
authorIwan Aucamp <aucampia@gmail.com>2023-03-13 01:18:21 +0100
committerGitHub <noreply@github.com>2023-03-13 01:18:21 +0100
commit35a35375d213afe83a825d7dfcc59008f8e2352c (patch)
tree1fa971ef3a9e897e19b5df5fc304fe9c02697e41 /examples/resource_example.py
parent7a7cc1f929ff6fbc8c3238368e518a00af1025b6 (diff)
downloadrdflib-35a35375d213afe83a825d7dfcc59008f8e2352c.tar.gz
fix: validation issues with examples (#2269)
I want to add examples for securing RDFLib network access using `sys.addaudithook` and `urllib.request.install_opener`, but I want to also validate the examples in our CI pipeline, so we can demonstrate they work to our users. This change adds validation for all examples, and the addition of the security examples in a seperate PR will then also get validated.
Diffstat (limited to 'examples/resource_example.py')
-rw-r--r--examples/resource_example.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/resource_example.py b/examples/resource_example.py
index 9085c32c..da93042f 100644
--- a/examples/resource_example.py
+++ b/examples/resource_example.py
@@ -7,7 +7,7 @@ where this resource is the subject.
This example shows g.resource() in action.
"""
-from rdflib import Graph, RDF, RDFS, Literal
+from rdflib import RDF, RDFS, Graph, Literal
from rdflib.namespace import FOAF
if __name__ == "__main__":