summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Higgins <gjh@bel-epa.com>2021-12-29 02:21:17 +0000
committerGraham Higgins <gjh@bel-epa.com>2021-12-29 02:21:17 +0000
commitb76c03e29c895fd58e057db3c81af1e9f8cefbc8 (patch)
tree2a7e3fb2ce8fa5d298daae1a7fe96af9d3890829
parentd72e721f9dfe6456f319bd7e6de730c68807c009 (diff)
downloadrdflib-b76c03e29c895fd58e057db3c81af1e9f8cefbc8.tar.gz
fix crass error as advised.
-rw-r--r--rdflib/graph.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rdflib/graph.py b/rdflib/graph.py
index 354ce786..180c74fb 100644
--- a/rdflib/graph.py
+++ b/rdflib/graph.py
@@ -728,16 +728,16 @@ class Graph(Node):
raise
def subject_predicates(
- self, obj=None, unique=False
+ self, object=None, unique=False
) -> Generator[Tuple[Node, Node], None, None]:
"""A generator of (optionally unique) (subject, predicate) tuples
for the given object"""
if not unique:
- for s, p, o in self.triples((None, None, obj)):
+ for s, p, o in self.triples((None, None, object)):
yield s, p
else:
subj_preds = set()
- for s, p, o in self.triples((None, None, obj)):
+ for s, p, o in self.triples((None, None, object)):
if (s, p) not in subj_preds:
yield s, p
try: