Skip to content

Commit

Permalink
Merge pull request #98 from teeworlds-mirror/mirror_3225_ChillerDrago…
Browse files Browse the repository at this point in the history
…n_pr_cmd5_fix_esc_seq_warning

Fix cmd5.py SyntaxWarning: invalid escape sequence teeworlds#3225
  • Loading branch information
furo321 committed Mar 12, 2024
2 parents 820ccf7 + a9b7f8a commit 27b3f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/cmd5.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def cstrip(lines):
l = re.sub("#.*".encode(), "".encode(), l)
l = re.sub("//.*".encode(), "".encode(), l)
d += l + " ".encode()
d = re.sub("\/\*.*?\*/".encode(), "".encode(), d) # remove /* */ comments
d = re.sub(r"\/\*.*?\*/".encode(), "".encode(), d) # remove /* */ comments
d = d.replace("\t".encode(), " ".encode()) # tab to space
d = re.sub(" *".encode(), " ".encode(), d) # remove double spaces
d = re.sub("".encode(), "".encode(), d) # remove /* */ comments
Expand Down

0 comments on commit 27b3f2d

Please sign in to comment.