summaryrefslogtreecommitdiff
path: root/crocoite/warc.py
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2019-06-18 16:57:29 +0200
committerLars-Dominik Braun <lars@6xq.net>2019-06-18 16:57:29 +0200
commit9c1de8ebb7b9e00bc6afc9f2ed2978a003d9abd8 (patch)
tree4ad0c2a78e23896739d6dadbfbea9cfd1bb4d722 /crocoite/warc.py
parentb4669705fa8e581c17bbe0ca0c7cf4fadbd3deb8 (diff)
downloadcrocoite-9c1de8ebb7b9e00bc6afc9f2ed2978a003d9abd8.tar.gz
crocoite-9c1de8ebb7b9e00bc6afc9f2ed2978a003d9abd8.tar.bz2
crocoite-9c1de8ebb7b9e00bc6afc9f2ed2978a003d9abd8.zip
Re-inject behavior scripts on site reload
Fixes #13. Event handler’s push() is async now.
Diffstat (limited to 'crocoite/warc.py')
-rw-r--r--crocoite/warc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/crocoite/warc.py b/crocoite/warc.py
index 4106995..3a084a1 100644
--- a/crocoite/warc.py
+++ b/crocoite/warc.py
@@ -241,7 +241,7 @@ class WarcHandler (EventHandler):
ControllerStart: _writeControllerStart,
}
- def push (self, item):
+ async def push (self, item):
for k, v in self.route.items ():
if isinstance (item, k):
v (self, item)