summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorBrennan Ashton <bashton@brennanashton.com>2018-11-01 17:51:04 -0700
committerMartin Braun <martin.braun@ettus.com>2018-11-12 09:57:11 -0800
commit67371e79057ef7581d19c4ff78eeac78ad4d6b64 (patch)
tree5dd150792ef9a25374f0b38683e1989002e8ae20 /cmake
parent7c34f2f53df8c7558a357b75feee7b7af76860ff (diff)
Use raw strings for regexp and docstrings that have desired backslashes
Resolves #2121 DeprecationWarning: invalid escape sequence /
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/GrSwig.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/Modules/GrSwig.cmake b/cmake/Modules/GrSwig.cmake
index 2ec2da2a95..b71443d633 100644
--- a/cmake/Modules/GrSwig.cmake
+++ b/cmake/Modules/GrSwig.cmake
@@ -212,8 +212,8 @@ file(WRITE ${CMAKE_BINARY_DIR}/get_swig_deps.py "
import os, sys, re, io
-i_include_matcher = re.compile('%(include|import)\\s*[<|\"](.*)[>|\"]')
-h_include_matcher = re.compile('#(include)\\s*[<|\"](.*)[>|\"]')
+i_include_matcher = re.compile(r'%(include|import)\\s*[<|\"](.*)[>|\"]')
+h_include_matcher = re.compile(r'#(include)\\s*[<|\"](.*)[>|\"]')
include_dirs = sys.argv[2].split(';')
def get_swig_incs(file_path):