From 9c1de8ebb7b9e00bc6afc9f2ed2978a003d9abd8 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 18 Jun 2019 16:57:29 +0200 Subject: Re-inject behavior scripts on site reload MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #13. Event handler’s push() is async now. --- crocoite/warc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crocoite/warc.py') 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) -- cgit v1.2.3