changeset 853:3d8a78daeed1

merge patch.py Ignore-this: 51dba2acbd2e314a25d11d92b0f83bd1
author drewp@bigasterisk.com
date Wed, 05 Jun 2013 23:34:32 +0000
parents d5ba3e20f666
children d098574272fc
files light9/rdfdb/patch.py
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/light9/rdfdb/patch.py	Wed Jun 05 23:30:55 2013 +0000
+++ b/light9/rdfdb/patch.py	Wed Jun 05 23:34:32 2013 +0000
@@ -62,19 +62,19 @@
     @property
     def addQuads(self):
         if self._addQuads is None:
-            if self._addGraph is not None:
-                self._addQuads = list(self._addGraph.quads(ALLSTMTS))
-            else:
-                raise
+            if self._addGraph is None:
+                return []
+            self._addQuads = list(quadsWithContextUris(
+                self._addGraph.quads(ALLSTMTS)))
         return self._addQuads
 
     @property
     def delQuads(self):
         if self._delQuads is None:
-            if self._delGraph is not None:
-                self._delQuads = list(self._delGraph.quads(ALLSTMTS))
-            else:
-                raise
+            if self._delGraph is None:
+                return []
+            self._delQuads = list(quadsWithContextUris(
+                self._delGraph.quads(ALLSTMTS)))
         return self._delQuads
 
     @property