Mercurial > libervia-backend
comparison twisted/plugins/sat_plugin.py @ 3475:3ac28e51a24f
core: removed `sat_tmp.twisted` patches + update minimum Twisted version:
- `sat_tmp` patches are not needed anymore and cause trouble with latest Twisted (21.02)
- update minimum to `20.3.0` which is the first one to support Python 3.8
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 18 Mar 2021 20:46:18 +0100 |
parents | a3639d6d9643 |
children | 11003f9f92fb |
comparison
equal
deleted
inserted
replaced
3474:1f1741dc3cc4 | 3475:3ac28e51a24f |
---|---|
23 from twisted.application.service import IServiceMaker | 23 from twisted.application.service import IServiceMaker |
24 | 24 |
25 # XXX: We need to configure logs before any log method is used, so here is the best place. | 25 # XXX: We need to configure logs before any log method is used, so here is the best place. |
26 from sat.core.constants import Const as C | 26 from sat.core.constants import Const as C |
27 from sat.core.i18n import _ | 27 from sat.core.i18n import _ |
28 | |
29 # patch for Python 3.8 compatibility | |
30 from sat_tmp.twisted import install as install_twisted_patches | |
31 | |
32 | |
33 install_twisted_patches() | |
34 | 28 |
35 | 29 |
36 def initialise(options): | 30 def initialise(options): |
37 """Method to initialise global modules""" | 31 """Method to initialise global modules""" |
38 # XXX: We need to configure logs before any log method is used, so here is the best place. | 32 # XXX: We need to configure logs before any log method is used, so here is the best place. |