Changeset - c65a7065910c
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 8 years ago 2016-08-20 05:39:40
drewp@bigasterisk.com
Patch.shortSummary
Ignore-this: 7fc381ee3d868fbebb9d0358c89ed6aa
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
light9/rdfdb/patch.py
Show inline comments
 
@@ -62,7 +62,10 @@ class Patch(object):
 
        delLines = ["  -%s" % formatQuad(q) for q in self.delQuads]
 
        addLines = ["  +%s" % formatQuad(q) for q in self.addQuads]
 
        return "\nPatch:\n" + "\n".join(delLines) + "\n" + "\n".join(addLines)
 
                
 

	
 
    def shortSummary(self):
 
        return "[-%s +%s]" % (len(self.delQuads), len(self.addQuads))
 
        
 
    @classmethod
 
    def fromDiff(cls, oldGraph, newGraph):
 
        """
0 comments (0 inline, 0 general)