From 2922b8c53c77b280c2847bc768c4ff75151938a3 Mon Sep 17 00:00:00 2001 From: Ashley Sommer Date: Sun, 19 Jul 2020 14:03:15 +1000 Subject: remove some old out-of-date comments Remove a emptygen function not used --- rdflib/plugins/memory.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/rdflib/plugins/memory.py b/rdflib/plugins/memory.py index fa5f1eea..1aefb045 100644 --- a/rdflib/plugins/memory.py +++ b/rdflib/plugins/memory.py @@ -200,8 +200,8 @@ class Memory2(Store): self.__context_obj_map = {} self.__tripleContexts = ( {} - ) # key: enctriple val: {cid1: quoted, cid2: quoted ...} - self.__contextTriples = {None: set()} # key: cid val: set(enctriples) + ) + self.__contextTriples = {None: set()} # all contexts used in store (unencoded) self.__all_contexts = set() # default context information for triples @@ -409,7 +409,7 @@ class Memory2(Store): _ = self.__spo[subj][pred][obj] return self.__contexts(triple) except KeyError: - return self.__emptygen() + return (_ for _ in []) def __len__(self, context=None): ctx = self.__ctx_to_str(context) @@ -526,11 +526,6 @@ class Memory2(Store): if ctx_str is not None ) - def __emptygen(self): - """return an empty generator""" - if False: - yield - class IOMemory(Store): """\ -- cgit v1.2.1