From 1c4b97c2f23f24547a88b8258da9298b7e4050b0 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 30 Sep 2014 20:58:30 +0300 Subject: [PATCH] Fix lint warning with anomalous backslash --- platformio/builder/tools/platformio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/builder/tools/platformio.py b/platformio/builder/tools/platformio.py index a8d19e9d..19302a1a 100644 --- a/platformio/builder/tools/platformio.py +++ b/platformio/builder/tools/platformio.py @@ -189,7 +189,7 @@ def ConvertInotoCpp(env): # print includes, prototypes # disable previous includes - ino_contents = re_includes.sub("//\g<1>", ino_contents) + ino_contents = re_includes.sub(r"//\1", ino_contents) # create new temporary C++ valid file with open(cppfile, "w") as f: