connectors/WAMP/__init__.py
branchpython3
changeset 3752 9f6f46dbe3ae
parent 3750 f62625418bff
child 3881 0b3ac94f494c
--- a/connectors/WAMP/__init__.py	Fri Oct 28 13:06:52 2022 +0800
+++ b/connectors/WAMP/__init__.py	Fri Oct 28 14:07:13 2022 +0800
@@ -23,13 +23,10 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 
-
-
 import sys
 import traceback
 from functools import partial
 from threading import Thread, Event
-from six import text_type as text
 
 from twisted.internet import reactor, threads
 from autobahn.twisted import wamp
@@ -85,7 +82,7 @@
 
         # create a WAMP application session factory
         component_config = types.ComponentConfig(
-            realm=text(realm),
+            realm=str(realm),
             extra={"ID": ID})
         session_factory = wamp.ApplicationSessionFactory(
             config=component_config)
@@ -111,7 +108,7 @@
         reactor.run(installSignalHandlers=False)
 
     def WampSessionProcMapper(funcname):
-        wampfuncname = text('.'.join((ID, funcname)))
+        wampfuncname = str('.'.join((ID, funcname)))
 
         def catcher_func(*args, **kwargs):
             if _WampSession is not None: