Skip to content

Commit

Permalink
FIX: Change is comparison to == for tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Apr 16, 2020
1 parent a22f453 commit 9567926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdflib/plugins/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def triples(self, triplein, context=None):
if self.__tripleHasContext(enctriple, cid))

def contexts(self, triple=None):
if triple is None or triple is (None, None, None):
if triple is None or triple == (None, None, None):
return (context for context in self.__all_contexts)

enctriple = self.__encodeTriple(triple)
Expand Down

0 comments on commit 9567926

Please sign in to comment.