changeset 418:89736353f6be

install sat_tmp's twisted patches for Python 3.8 compatibility
author Goffi <goffi@goffi.org>
date Mon, 18 Nov 2019 20:49:38 +0100
parents 412d26a9b2c2
children 794593086517
files twisted/plugins/pubsub.py
diffstat 1 files changed, 9 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/twisted/plugins/pubsub.py	Tue Oct 08 12:04:13 2019 +0200
+++ b/twisted/plugins/pubsub.py	Mon Nov 18 20:49:38 2019 +0100
@@ -50,19 +50,22 @@
 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 
+import sys
 import csv
-import sat_pubsub
-import sys
+from os.path import expanduser, realpath
+import configparser
+# patch for Python 3.8 compatibility
+from sat_tmp.twisted import install as install_twisted_patches
+install_twisted_patches()
+from zope.interface import implementer
 from twisted.application.service import IServiceMaker
 from twisted.application import service
 from twisted.python import usage, log
+from twisted.plugin import IPlugin
 from twisted.words.protocols.jabber.jid import JID
-from twisted.plugin import IPlugin
+import sat_pubsub
 
-from zope.interface import implementer
 
-from os.path import expanduser, realpath
-import configparser
 
 
 def coerceListType(value):