comparison twisted/plugins/pubsub.py @ 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 6f8e1c180c83
comparison
equal deleted inserted replaced
417:412d26a9b2c2 418:89736353f6be
48 # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 48 # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
49 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 49 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
50 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 50 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
51 51
52 52
53 import sys
53 import csv 54 import csv
54 import sat_pubsub 55 from os.path import expanduser, realpath
55 import sys 56 import configparser
57 # patch for Python 3.8 compatibility
58 from sat_tmp.twisted import install as install_twisted_patches
59 install_twisted_patches()
60 from zope.interface import implementer
56 from twisted.application.service import IServiceMaker 61 from twisted.application.service import IServiceMaker
57 from twisted.application import service 62 from twisted.application import service
58 from twisted.python import usage, log 63 from twisted.python import usage, log
64 from twisted.plugin import IPlugin
59 from twisted.words.protocols.jabber.jid import JID 65 from twisted.words.protocols.jabber.jid import JID
60 from twisted.plugin import IPlugin 66 import sat_pubsub
61 67
62 from zope.interface import implementer 68
63
64 from os.path import expanduser, realpath
65 import configparser
66 69
67 70
68 def coerceListType(value): 71 def coerceListType(value):
69 return next(csv.reader( 72 return next(csv.reader(
70 [value], delimiter=",", quotechar='"', skipinitialspace=True 73 [value], delimiter=",", quotechar='"', skipinitialspace=True