comparison lib/patchablegraph/patchablegraph.py @ 711:e404420a2343

don't require first arg on PatchedGraph.serialize Ignore-this: bc695823e03dbd012e03efa4e40b6aca
author drewp@bigasterisk.com
date Mon, 03 Feb 2020 23:46:29 -0800
parents 5b6022beb388
children d98c3ffe7144
comparison
equal deleted inserted replaced
710:94610b5263e4 711:e404420a2343
98 self._graph = ConjunctiveGraph() 98 self._graph = ConjunctiveGraph()
99 self._observers = [] 99 self._observers = []
100 scales.init(self, '/patchableGraph%s' % next(_graphsInProcess)) 100 scales.init(self, '/patchableGraph%s' % next(_graphsInProcess))
101 101
102 _serialize = scales.PmfStat('serialize') 102 _serialize = scales.PmfStat('serialize')
103 def serialize(self, to, **kw): 103 def serialize(self, *arg, **kw):
104 with self._serialize.time(): 104 with self._serialize.time():
105 return self._graph.serialize(to, **kw) 105 return self._graph.serialize(*arg, **kw)
106 106
107 _patch = scales.PmfStat('patch') 107 _patch = scales.PmfStat('patch')
108 _len = scales.IntStat('statementCount') 108 _len = scales.IntStat('statementCount')
109 def patch(self, p): 109 def patch(self, p):
110 with self._patch.time(): 110 with self._patch.time():