diff -r c1e5b9f19483 -r c74815729afd Beremiz_service.py --- a/Beremiz_service.py Thu Aug 17 17:25:17 2017 +0300 +++ b/Beremiz_service.py Fri Aug 18 12:36:31 2017 +0300 @@ -198,7 +198,7 @@ event(self, function) def __init__(self, parent, message, caption=_("Please enter text"), defaultValue="", - style=wx.OK | wx.CANCEL | wx.CENTRE, pos=wx.DefaultPosition): + style=wx.OK | wx.CANCEL | wx.CENTRE, pos=wx.DefaultPosition): wx.TextEntryDialog.__init__(self, parent, message, caption, defaultValue, style, pos) self.Tests = [] @@ -312,8 +312,9 @@ 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() self.pyroserver.Stop()