connectors/WAMP_dialog.py
changeset 2492 7dd551ac2fa0
parent 2334 d1470c052662
child 2521 48ebcbe7f19b
--- a/connectors/WAMP_dialog.py	Thu Mar 07 21:57:18 2019 +0100
+++ b/connectors/WAMP_dialog.py	Mon Mar 11 01:03:32 2019 +0100
@@ -6,15 +6,15 @@
 from __future__ import absolute_import
 
 from itertools import repeat, islice, chain
-import wx
 
 from connectors.SchemeEditor import SchemeEditor
 
 Schemes = ["WAMP", "WAMPS"]
 
-model = [('host',_("Host:")),
-         ('port',_("Port:")),
-         ('realm',_("Realm:"))]
+model = [('host', _("Host:")),
+         ('port', _("Port:")),
+         ('realm', _("Realm:"))]
+
 
 class WAMP_dialog(SchemeEditor):
     def __init__(self, *args, **kwargs):
@@ -22,19 +22,19 @@
         self.EnableIDSelector = True
         SchemeEditor.__init__(self, *args, **kwargs)
 
+    # pylint: disable=unused-variable
     def SetLoc(self, loc):
-        hostport, realm, ID = list(islice(chain(loc.split("#"), repeat("")),3))
-        host, port = list(islice(chain(hostport.split(":"), repeat("")),2))
+        hostport, realm, ID = list(islice(chain(loc.split("#"), repeat("")), 3))
+        host, port = list(islice(chain(hostport.split(":"), repeat("")), 2))
         self.SetFields(locals())
 
     def GetLoc(self):
         fields = self.GetFields()
 
-        #TODO : input validation test
+        # TODO : input validation test
 
         template = "{host}" + \
                    (":{port}" if fields['port'] else '') +\
                    "#{realm}#{ID}"
 
         return template.format(**fields)
-