summaryrefslogtreecommitdiff
path: root/python/firstheader.py
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2024-07-25 07:17:03 -0400
committerGitHub <noreply@github.com>2024-07-25 07:17:03 -0400
commit035542f6bb9186e517b3d2745952ea1d66645206 (patch)
tree000e9dc291dea4b35b9e1e7538cfe635c4fcb925 /python/firstheader.py
parent30bbba1f326c3c11b0b480e55ec03c32b16fd371 (diff)
parent8916953b534f64a7545860ad5b4b36dc2544f33a (diff)
Merge pull request #16449 from opensourcerouting/py-invalid-escapes
build: fix a few python string escape warnings
Diffstat (limited to 'python/firstheader.py')
-rw-r--r--python/firstheader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/firstheader.py b/python/firstheader.py
index 06e2895845..1a3cadfd5e 100644
--- a/python/firstheader.py
+++ b/python/firstheader.py
@@ -15,7 +15,7 @@ argp.add_argument("--autofix", action="store_const", const=True)
argp.add_argument("--warn-empty", action="store_const", const=True)
argp.add_argument("--pipe", action="store_const", const=True)
-include_re = re.compile('^#\s*include\s+["<]([^ ">]+)[">]', re.M)
+include_re = re.compile(r'^#\s*include\s+["<]([^ ">]+)[">]', re.M)
ignore = [
lambda fn: fn.startswith("tools/"),