--- a/BeremizIDE.py Sat Aug 19 17:17:54 2017 +0300
+++ b/BeremizIDE.py Sat Aug 19 18:12:20 2017 +0300
@@ -172,7 +172,7 @@
self.LastRefreshTime = gettime()
self.RefreshLock.release()
if newtime - self.rising_timer > 1:
@@ -676,7 +676,7 @@
recent_projects = map(DecodeFileSystemPath,
self.GetConfigEntry("RecentProjects", []))
while self.RecentProjectsMenu.GetMenuItemCount() > len(recent_projects):
@@ -826,7 +826,7 @@
recent_projects = map(DecodeFileSystemPath,
self.GetConfigEntry("RecentProjects", []))
if projectpath in recent_projects:
recent_projects.remove(projectpath)
@@ -846,7 +846,7 @@
defaultpath = DecodeFileSystemPath(self.Config.Read("lastopenedfolder"))
defaultpath = os.path.expanduser("~")
dialog = wx.DirDialog(self, _("Choose an empty directory for new project"), defaultpath)
@@ -882,7 +882,7 @@
defaultpath = DecodeFileSystemPath(self.Config.Read("lastopenedfolder"))
defaultpath = os.path.expanduser("~")
dialog = wx.DirDialog(self, _("Choose a project"), defaultpath,
@@ -1175,7 +1175,7 @@
if 'self' in exception_locals:
info['self'] = format_namespace(exception_locals['self'].__dict__)
if not os.path.exists(path):
@@ -1210,7 +1210,7 @@
except (KeyboardInterrupt, SystemExit):
sys.excepthook(*sys.exc_info())
self.run = run_with_except_hook
threading.Thread.__init__ = init
--- a/Beremiz_service.py Sat Aug 19 17:17:54 2017 +0300
+++ b/Beremiz_service.py Sat Aug 19 18:12:20 2017 +0300
@@ -167,7 +167,7 @@
wxversion.select(['2.8', '3.0'])
@@ -481,7 +481,7 @@
from twisted.internet import reactor
print _("Twisted unavailable.")
@@ -557,7 +557,7 @@
except (KeyboardInterrupt, SystemExit):
sys.excepthook(*sys.exc_info())
self.run = run_with_except_hook
threading.Thread.__init__ = init
--- a/PLCControler.py Sat Aug 19 17:17:54 2017 +0300
+++ b/PLCControler.py Sat Aug 19 18:12:20 2017 +0300
@@ -1013,7 +1013,7 @@
new_pou, error = LoadPou(pou_xml)
return _("Couldn't paste non-POU object.")
@@ -2407,7 +2407,7 @@
instances, error = LoadPouInstances(text, bodytype)
instances, error = [], ""
if error is not None or len(instances) == 0:
return _("Invalid plcopen element(s)!!!")
--- a/ProjectController.py Sat Aug 19 17:17:54 2017 +0300
+++ b/ProjectController.py Sat Aug 19 18:12:20 2017 +0300
@@ -1216,7 +1216,7 @@
self._IECCodeView.SetKeywords(IEC_KEYWORDS)
text = file(plc_file).read()
text = '(* No IEC code have been generated at that time ! *)'
self._IECCodeView.SetText(text=text)
self._IECCodeView.Editor.SetReadOnly(True)
@@ -1718,7 +1718,7 @@
answer = dialog.ShowModal()
self.logger.write_error(_("Local service discovery failed!\n"))
self.logger.write_error(traceback.format_exc())
--- a/docutil/docpdf.py Sat Aug 19 17:17:54 2017 +0300
+++ b/docutil/docpdf.py Sat Aug 19 18:12:20 2017 +0300
@@ -42,7 +42,7 @@
res = _winreg.QueryValue(_winreg.HKEY_LOCAL_MACHINE, 'Software\\Adobe\\%s\\%s\\InstallPath' % (key, numver))
@@ -66,7 +66,7 @@
if wx.Platform == '__WXMSW__':
readerpath = get_acroversion()
wx.MessageBox("Acrobat Reader is not found or installed !")
--- a/editors/CodeFileEditor.py Sat Aug 19 17:17:54 2017 +0300
+++ b/editors/CodeFileEditor.py Sat Aug 19 18:12:20 2017 +0300
@@ -196,7 +196,7 @@
def OnDoDrop(self, event):
values = eval(event.GetDragText())
values = event.GetDragText()
if isinstance(values, tuple):
--- a/editors/TextViewer.py Sat Aug 19 17:17:54 2017 +0300
+++ b/editors/TextViewer.py Sat Aug 19 18:12:20 2017 +0300
@@ -247,7 +247,7 @@
def OnDoDrop(self, event):
values = eval(event.GetDragText())
values = event.GetDragText()
if isinstance(values, tuple):
--- a/runtime/PLCObject.py Sat Aug 19 17:17:54 2017 +0300
+++ b/runtime/PLCObject.py Sat Aug 19 18:12:20 2017 +0300
@@ -225,7 +225,7 @@
self._loading_error = traceback.format_exc()
PLCprint(self._loading_error)
@@ -317,7 +317,7 @@
method = self.python_runtime_vars.get("_%s_%s" % (name, methodname), None)
self.python_runtime_vars["_runtime_%s" % methodname].append(method)
self.LogMessage(0, traceback.format_exc())
@@ -423,9 +423,9 @@
for filename in file(extra_files_log, "r").readlines() + [extra_files_log]:
os.remove(os.path.join(self.workingdir, filename.strip()))
@@ -445,7 +445,7 @@
self.CurrentPLCFilename = NewFileName
self.PLCStatus = "Broken"
PLCprint(traceback.format_exc())
@@ -465,7 +465,7 @@
last_md5 = open(self._GetMD5FileName(), "r").read()
@@ -556,7 +556,7 @@
def RemoteExec(self, script, *kwargs):
e_type, e_value, e_traceback = sys.exc_info()
line_no = traceback.tb_lineno(get_last_traceback(e_traceback))
return (-1, "RemoteExec script failed!\n\nLine %d: %s\n\t%s" %
--- a/svgui/pyjs/build.py Sat Aug 19 17:17:54 2017 +0300
+++ b/svgui/pyjs/build.py Sat Aug 19 18:12:20 2017 +0300
@@ -11,7 +11,7 @@
@@ -77,7 +77,7 @@
@@ -203,7 +203,7 @@
os.path.getmtime(html_output_filename):
shutil.copy(html_input_filename, html_output_filename)
print >>sys.stderr, "Warning: Missing module HTML file %s" % html_input_filename
print "Copying: %(html_input_filename)s" % locals()
--- a/svgui/pyjs/jsonrpc/jsonrpc.py Sat Aug 19 17:17:54 2017 +0300
+++ b/svgui/pyjs/jsonrpc/jsonrpc.py Sat Aug 19 18:12:20 2017 +0300
@@ -34,7 +34,7 @@
etype, eval, etb = sys.exc_info()
return self.error(id, 100, '%s: %s' % (etype.__name__, eval))
etype, eval, etb = sys.exc_info()
return self.error(id, 100, 'Exception %s: %s' % (etype, eval))
--- a/util/Zeroconf.py Sat Aug 19 17:17:54 2017 +0300
+++ b/util/Zeroconf.py Sat Aug 19 18:12:20 2017 +0300
@@ -241,14 +241,14 @@
def toString(self, hdr, other):
@@ -366,7 +366,7 @@
"""String representation"""
return socket.inet_ntoa(self.address)
@@ -799,7 +799,7 @@
list = self.cache[entry.key]
list = self.cache[entry.key] = []
@@ -808,7 +808,7 @@
list = self.cache[entry.key]
@@ -817,7 +817,7 @@
list = self.cache[entry.key]
return list[list.index(entry)]
def getByDetails(self, name, type, clazz):
@@ -830,7 +830,7 @@
"""Returns a list of entries whose key matches the name."""
@@ -838,7 +838,7 @@
def add(x, y): return x+y
return reduce(add, self.cache.values())
@@ -878,10 +878,10 @@
self.readers[socket].handle_read()
# Ignore errors that occur on shutdown
@@ -1000,7 +1000,7 @@
del(self.services[record.alias.lower()])
self.list.append(callback)
return self.listener.addService(x, self.type, record.alias)
@@ -1130,7 +1130,7 @@
@@ -1263,7 +1263,7 @@
self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
# SO_REUSEADDR should be equivalent to SO_REUSEPORT for
# multicast UDP sockets (p 731, "TCP/IP Illustrated,
# Volume 2"), but some BSD-derived systems require
@@ -1278,7 +1278,7 @@
self.socket.setsockopt(socket.SOL_IP, socket.IP_MULTICAST_LOOP, 1)
self.socket.bind(self.group)
# Some versions of linux raise an exception even though
# the SO_REUSE* options have been set, so ignore it
@@ -1375,7 +1375,7 @@
"""Unregister a service."""
del(self.services[info.name.lower()])
now = currentTimeMillis()
@@ -1460,7 +1460,7 @@
self.listeners.remove(listener)
def updateRecord(self, now, rec):
@@ -1529,7 +1529,7 @@
out.addAnswer(msg, DNSText(question.name, _TYPE_TXT, _CLASS_IN | _CLASS_UNIQUE, _DNS_TTL, service.text))
if question.type == _TYPE_SRV:
out.addAdditionalAnswer(DNSAddress(service.server, _TYPE_A, _CLASS_IN | _CLASS_UNIQUE, _DNS_TTL, service.address))
if out is not None and out.answers:
@@ -1542,7 +1542,7 @@
#temp = DNSIncoming(out.packet())
bytes_sent = self.socket.sendto(out.packet(), 0, (addr, port))
# Ignore this, it may be a temporary loss of network connection
--- a/xmlclass/xmlclass.py Sat Aug 19 17:17:54 2017 +0300
+++ b/xmlclass/xmlclass.py Sat Aug 19 18:12:20 2017 +0300
@@ -191,7 +191,7 @@
raise ValueError("\"%s\" isn't a valid hexadecimal integer!" % value)
raise ValueError("\"%s\" isn't a valid hexadecimal integer!" % value)
@@ -221,7 +221,7 @@
# TODO: permit to write value like 1E2
raise ValueError("\"%s\" isn't a valid integer!" % value)
if minInclusive is not None and value < minInclusive:
raise ValueError("\"%d\" isn't greater or equal to %d!" %
@@ -260,7 +260,7 @@
raise ValueError("\"%s\" isn't a valid %s!" % (value, type))
@@ -410,7 +410,7 @@
raise ValueError("Member limit can't be defined to \"unbounded\"!")
raise ValueError("\"%s\" isn't a valid value for this member limit!" % value)
raise ValueError("Member limit can't be negative!")
--- a/xmlclass/xsdschema.py Sat Aug 19 17:17:54 2017 +0300
+++ b/xmlclass/xsdschema.py Sat Aug 19 18:12:20 2017 +0300
@@ -215,7 +215,7 @@
raise ValueError("\"length\" and \"maxLength\" facets can't be defined at the same time!")
raise ValueError("\"length\" must be an integer!")
raise ValueError("\"length\" can't be negative!")
@@ -226,7 +226,7 @@
raise ValueError("\"length\" and \"minLength\" facets can't be defined at the same time!")
raise ValueError("\"minLength\" must be an integer!")
raise ValueError("\"minLength\" can't be negative!")
@@ -239,7 +239,7 @@
raise ValueError("\"length\" and \"maxLength\" facets can't be defined at the same time!")
raise ValueError("\"maxLength\" must be an integer!")
raise ValueError("\"maxLength\" can't be negative!")
@@ -464,7 +464,7 @@
for infos in membertypesinfos:
return infos["extract"](attr, False)
raise ValueError("\"%s\" isn't valid for type defined for union!")