summaryrefslogtreecommitdiff
path: root/gr-utils/python/modtool/core/add.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-utils/python/modtool/core/add.py')
-rw-r--r--gr-utils/python/modtool/core/add.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-utils/python/modtool/core/add.py b/gr-utils/python/modtool/core/add.py
index e74509f930..2ec57f4d2a 100644
--- a/gr-utils/python/modtool/core/add.py
+++ b/gr-utils/python/modtool/core/add.py
@@ -161,7 +161,7 @@ class ModToolAdd(ModTool):
return
try:
append_re_line_sequence(self._file['cmlib'],
- 'list\(APPEND test_{}_sources.*\n'.format(self.info['modname']),
+ r'list\(APPEND test_{}_sources.*\n'.format(self.info['modname']),
'qa_{}.cc'.format(self.info['blockname']))
append_re_line_sequence(self._file['qalib'],
'#include.*\n',
@@ -183,7 +183,7 @@ class ModToolAdd(ModTool):
return
try:
append_re_line_sequence(self._file['cmlib'],
- 'list\(APPEND test_{}_sources.*\n'.format(self.info['modname']),
+ r'list\(APPEND test_{}_sources.*\n'.format(self.info['modname']),
'qa_{}.cc'.format(self.info['blockname']))
self.scm.mark_files_updated((self._file['cmlib'],))
except IOError:
@@ -255,7 +255,7 @@ class ModToolAdd(ModTool):
if re.search('#include', oldfile):
append_re_line_sequence(self._file['swig'], '^#include.*\n', include_str)
else: # I.e., if the swig file is empty
- regexp = re.compile('^%\{\n', re.MULTILINE)
+ regexp = re.compile(r'^%\{\n', re.MULTILINE)
oldfile = regexp.sub('%%{\n%s\n' % include_str, oldfile, count=1)
with open(self._file['swig'], 'w') as f:
f.write(oldfile)