Mercurial > libervia-backend
comparison twisted/plugins/sat_plugin.py @ 3076:2180b0f5c1cd
core: use sat_tmp's twisted patches for Python 3.8 compatibility
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 18 Nov 2019 20:51:25 +0100 |
parents | 8b36e5c3f28f |
children | 559a625a236b |
comparison
equal
deleted
inserted
replaced
3075:501a1a3c8594 | 3076:2180b0f5c1cd |
---|---|
24 from twisted.application.service import IServiceMaker | 24 from twisted.application.service import IServiceMaker |
25 | 25 |
26 # XXX: We need to configure logs before any log method is used, so here is the best place. | 26 # XXX: We need to configure logs before any log method is used, so here is the best place. |
27 from sat.core.constants import Const as C | 27 from sat.core.constants import Const as C |
28 from sat.core.i18n import _ | 28 from sat.core.i18n import _ |
29 | |
30 # patch for Python 3.8 compatibility | |
31 from sat_tmp.twisted import install as install_twisted_patches | |
32 | |
33 | |
34 install_twisted_patches() | |
29 | 35 |
30 | 36 |
31 def initialise(options): | 37 def initialise(options): |
32 """Method to initialise global modules""" | 38 """Method to initialise global modules""" |
33 # XXX: We need to configure logs before any log method is used, so here is the best place. | 39 # XXX: We need to configure logs before any log method is used, so here is the best place. |