changeset 76:67508db07ea0

wokkel: workaround to make Wokkel work with latest version of Twisted: Latest version of Twisted has dropped Python 2.7 support, and thus removed `python.compat._PY3`. This patch works around this by settings it to True.
author Goffi <goffi@goffi.org>
date Thu, 18 Mar 2021 22:34:35 +0100
parents 4b08108560e3
children 0f2536ae968f
files sat_tmp/wokkel/__init__.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sat_tmp/wokkel/__init__.py	Thu Mar 18 20:53:11 2021 +0100
+++ b/sat_tmp/wokkel/__init__.py	Thu Mar 18 22:34:35 2021 +0100
@@ -20,6 +20,8 @@
 
 def install():
     """Monkey patch Wokkel to have improvments implemented here"""
+    from twisted.python import compat
+    compat._PY3 = True
     import wokkel
     from . import pubsub, rsm, mam, data_form
     wokkel.pubsub = pubsub