diff -r 0f2e5303f212 -r f0a040f1de1b plcopen/plcopen.py --- a/plcopen/plcopen.py Tue Oct 09 11:43:39 2018 +0300 +++ b/plcopen/plcopen.py Tue Oct 09 11:56:45 2018 +0300 @@ -79,7 +79,7 @@ ("SL", True)]) -FILTER_ADDRESS_MODEL = "(%%[IQM](?:[XBWDL])?)(%s)((?:\.[0-9]+)*)" +FILTER_ADDRESS_MODEL = r"(%%[IQM](?:[XBWDL])?)(%s)((?:\.[0-9]+)*)" def update_address(address, address_model, new_leading): @@ -231,8 +231,8 @@ "http://www.plcopen.org/xml/tc6.xsd", "http://www.plcopen.org/xml/tc6_0201") for cre, repl in [ - (re.compile("(?)(?:)(?!)"), "]]>")]: + (re.compile(r"(?)(?:)(?!)"), "]]>")]: project_xml = cre.sub(repl, project_xml) try: @@ -2876,7 +2876,7 @@ cls = PLCOpenParser.GetElementClass("arrayValue", "value") if cls: - arrayValue_model = re.compile("([0-9]+)\((.*)\)$") + arrayValue_model = re.compile(r"([0-9]+)\((.*)\)$") _updateArrayValueValueClass(cls) # ----------------------------------------------------------------------