Mercurial > code > home > repos > homeauto
comparison lib/patchablegraph/patchablegraph.py @ 1512:1e9cfec1be78
don't require first arg on PatchedGraph.serialize
Ignore-this: bc695823e03dbd012e03efa4e40b6aca
darcs-hash:1dbf9271b5ca55c78987c474ef223af9d5b811d2
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Mon, 03 Feb 2020 23:46:29 -0800 |
parents | e41935c0ce96 |
children | c829df2b0dd5 |
comparison
equal
deleted
inserted
replaced
1511:9733063421e1 | 1512:1e9cfec1be78 |
---|---|
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(): |