Skip to content

Commit

Permalink
fix: trailing \ in raw string
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi committed Jan 30, 2024
1 parent 9f110ec commit 1d82674
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pylib/gyp/generator/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,8 @@ def CalculateGeneratorInputInfo(params):
# delete the first line and append a colon to the remaining lines.""" +
(r"""
sed -e 's/\\\\$$//' -e 's/\\\\/\//g' -e 'y| |\n|' $(depfile).raw |\\"""
if sys.platform == 'win32' else r"""
sed -e 's|\\||' -e 'y| |\n|' $(depfile).raw |\\""") +
if sys.platform == 'win32' else """
sed -e 's|\\\\||' -e 'y| |\\n|' $(depfile).raw |\\""") +
r"""
grep -v '^$$' |\
sed -e 1d -e 's|$$|:|' \
Expand Down

0 comments on commit 1d82674

Please sign in to comment.