Beremiz_service.py
changeset 1773 38fde37c3766
parent 1767 c74815729afd
child 1780 c52d1460cea8
--- a/Beremiz_service.py	Sat Aug 19 00:30:22 2017 +0300
+++ b/Beremiz_service.py	Sat Aug 19 00:58:44 2017 +0300
@@ -313,8 +313,7 @@
                 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!"))
-                ])
+                               _("IP is not valid!"))])
                 if dlg.ShowModal() == wx.ID_OK:
                     self.pyroserver.ip_addr = dlg.GetValue()
                     self.pyroserver.Stop()