Mercurial > code > home > repos > homeauto
comparison lib/patchablegraph/patchsource.py @ 569:2d13254fdd44
fix old module name twisted_sse_demo
Ignore-this: 9eae98ea57725eeaf68e94e9f9f46fec
author | drewp@bigasterisk.com |
---|---|
date | Mon, 06 May 2019 00:02:26 -0700 |
parents | 495f573af4f4 |
children | 32939cddf360 |
comparison
equal
deleted
inserted
replaced
568:2d8a5532f1b5 | 569:2d13254fdd44 |
---|---|
2 import traceback | 2 import traceback |
3 from rdflib import ConjunctiveGraph | 3 from rdflib import ConjunctiveGraph |
4 from rdflib.parser import StringInputSource | 4 from rdflib.parser import StringInputSource |
5 from twisted.internet import reactor, defer | 5 from twisted.internet import reactor, defer |
6 | 6 |
7 from patchablegraph import patchFromJson | |
8 from rdfdb.patch import Patch | 7 from rdfdb.patch import Patch |
9 from twisted_sse_demo.eventsource import EventSource | 8 from twisted_sse.eventsource import EventSource |
9 | |
10 from .patchablegraph import patchFromJson | |
10 | 11 |
11 log = logging.getLogger('fetch') | 12 log = logging.getLogger('fetch') |
12 | 13 |
13 class PatchSource(object): | 14 class PatchSource(object): |
14 """wrap EventSource so it emits Patch objects and has an explicit stop method.""" | 15 """wrap EventSource so it emits Patch objects and has an explicit stop method.""" |