Przeglądaj źródła

Fix missing unicode definition

Stefan Profanter 5 lat temu
rodzic
commit
896d1a3679

+ 6 - 0
tools/nodeset_compiler/backend_open62541_nodes.py

@@ -21,6 +21,12 @@ from backend_open62541_datatypes import *
 import re
 import logging
 
+import sys
+if sys.version_info[0] >= 3:
+    # strings are already parsed to unicode
+    def unicode(s):
+        return s
+
 logger = logging.getLogger(__name__)
 
 #################