summaryrefslogtreecommitdiff
path: root/gr-utils/python/modtool/modtool_disable.py
diff options
context:
space:
mode:
authorClayton Smith <argilo@gmail.com>2018-09-26 08:16:08 -0400
committerMarcus Müller <marcus@hostalia.de>2018-11-01 13:56:52 +0100
commitbab3c3fbc1e4a0bc303b88077514144fd6e3a434 (patch)
treecba3a098c823f298e05dca691ac2fb2b5ba197a7 /gr-utils/python/modtool/modtool_disable.py
parent63d4bb4b47a2b66be05b16cf0164f3cd57ca92fa (diff)
Fix invalid escape sequences.
Diffstat (limited to 'gr-utils/python/modtool/modtool_disable.py')
-rw-r--r--gr-utils/python/modtool/modtool_disable.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gr-utils/python/modtool/modtool_disable.py b/gr-utils/python/modtool/modtool_disable.py
index 3a105e407c..ed55389fb7 100644
--- a/gr-utils/python/modtool/modtool_disable.py
+++ b/gr-utils/python/modtool/modtool_disable.py
@@ -117,7 +117,7 @@ class ModToolDisable(ModTool):
blockname = os.path.splitext(fname[len(self._info['modname'])+1:])[0]
if self._info['version'] in ('37', '38'):
blockname = os.path.splitext(fname)[0]
- swigfile = re.sub('(%include\s+"'+fname+'")', r'//\1', swigfile)
+ swigfile = re.sub(r'(%include\s+"'+fname+r'")', r'//\1', swigfile)
print("Changing %s..." % self._file['swig'])
swigfile = re.sub('(GR_SWIG_BLOCK_MAGIC2?.+'+blockname+'.+;)', r'//\1', swigfile)
open(self._file['swig'], 'w').write(swigfile)
@@ -163,4 +163,3 @@ class ModToolDisable(ModTool):
cmake.write()
self.scm.mark_files_updated((os.path.join(subdir, 'CMakeLists.txt'),))
print("Careful: 'gr_modtool disable' does not resolve dependencies.")
-