Use another way to ensure compatibility with Py3 about text type.
authorEdouard Tisserant
Tue, 18 Dec 2018 14:08:11 +0100
changeset 2470 590f85412835
parent 2469 e8760be772d5
child 2471 9d5c291b510f
Use another way to ensure compatibility with Py3 about text type.
connectors/WAMP/__init__.py
--- a/connectors/WAMP/__init__.py	Mon Dec 10 11:22:43 2018 +0100
+++ b/connectors/WAMP/__init__.py	Tue Dec 18 14:08:11 2018 +0100
@@ -28,7 +28,7 @@
 import sys
 import traceback
 from threading import Thread, Event
-from builtins import str as text
+from six import text_type as text
 
 from twisted.internet import reactor, threads
 from autobahn.twisted import wamp