From 1d82674d9a4acd4722e00fafa27fe3d877192c36 Mon Sep 17 00:00:00 2001 From: toyobayashi Date: Tue, 30 Jan 2024 18:12:33 +0800 Subject: [PATCH] fix: trailing `\` in raw string --- pylib/gyp/generator/make.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylib/gyp/generator/make.py b/pylib/gyp/generator/make.py index c7f54459..142a59c7 100644 --- a/pylib/gyp/generator/make.py +++ b/pylib/gyp/generator/make.py @@ -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|$$|:|' \