Python 3.12+ throws SyntaxWarning when detectig invalid sequence in regular expressions. in fdt/misc.py - line 66 :
def strip_comments(text):
text = re.sub('//.?(\r\n?|\n)|/*.?*/', '\n', text, flags=re.S)
return text
shall use r'..' instead of '...' and therefore be replaced by:
def strip_comments(text):
text = re.sub(r'//.?(\r\n?|\n)|/*.?*/', '\n', text, flags=re.S)
return text
Python 3.12+ throws SyntaxWarning when detectig invalid sequence in regular expressions. in fdt/misc.py - line 66 :
def strip_comments(text):
text = re.sub('//.?(\r\n?|\n)|/*.?*/', '\n', text, flags=re.S)
return text
shall use r'..' instead of '...' and therefore be replaced by:
def strip_comments(text):
text = re.sub(r'//.?(\r\n?|\n)|/*.?*/', '\n', text, flags=re.S)
return text