Skip to content

Commit

Permalink
Merge pull request #23 from tecknicaltom/fix-deprecationwarning
Browse files Browse the repository at this point in the history
fix DeprecationWarning for invalid escape sequence
  • Loading branch information
molejar authored Sep 18, 2024
2 parents 3d6270c + c9cab5d commit d2f1d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fdt/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_version_info(text):


def strip_comments(text):
text = re.sub('//.*?(\r\n?|\n)|/\*.*?\*/', '\n', text, flags=re.S)
text = re.sub(r'//.*?(\r\n?|\n)|/\*.*?\*/', '\n', text, flags=re.S)
return text


Expand Down

0 comments on commit d2f1d77

Please sign in to comment.