Beremiz_service.py
changeset 1747 6046ffa2280f
parent 1746 45d6f5fba016
child 1749 d73b64672238
--- a/Beremiz_service.py	Wed Aug 16 12:03:46 2017 +0300
+++ b/Beremiz_service.py	Wed Aug 16 12:21:05 2017 +0300
@@ -310,7 +310,7 @@
                 ip_addr = '' if ip_addr is None else ip_addr
                 dlg = ParamsEntryDialog(None, _("Enter the IP of the interface to bind"), defaultValue=ip_addr)
                 dlg.SetTests([(re.compile('\d{1,3}(?:\.\d{1,3}){3}$').match, _("IP is not valid!")),
-                               ( lambda x:len([x for x in x.split(".") if 0 <= int(x) <= 255]) == 4, _("IP is not valid!"))
+                               (lambda x:len([x for x in x.split(".") if 0 <= int(x) <= 255]) == 4, _("IP is not valid!"))
                                ])
                 if dlg.ShowModal() == wx.ID_OK:
                     self.pyroserver.ip_addr = dlg.GetValue()