devicetree-org / dt-schema

Devicetree schema tools
http://www.devicetree.org
BSD 2-Clause "Simplified" License
67 stars 67 forks source link

Fix SyntaxWarning: invalid escape sequence #124

Closed gagath closed 9 months ago

gagath commented 9 months ago

This commit fixes the following warnings:

extract_example.py: SyntaxWarning: invalid escape sequence '\s' root_node = re.search('/\s{', ex) extract_example.py: SyntaxWarning: invalid escape sequence '\s' int_val = re.search('\sinterrupts\s=\s<([0-9a-zA-Z |()_]+)>', ex).group(1) validator.py: SyntaxWarning: invalid escape sequence '-' del props['^[a-z][a-z0-9-]$'] validator.py: SyntaxWarning: invalid escape sequence '\^' prog = re.compile('.[\^[{(\$].') validator.py: SyntaxWarning: invalid escape sequence '-' if c != '^[a-zA-Z0-9][a-zA-Z0-9,+-._/]+$':