summaryrefslogtreecommitdiff
path: root/gr-utils/src/python/modtool/cmakefile_editor.py
diff options
context:
space:
mode:
authorMartin Braun2013-01-28 15:26:05 +0100
committerMartin Braun2013-01-28 15:26:05 +0100
commit2d695b3c4c86b5c206f95dcc1d71f97d808d98b8 (patch)
treecf52a650d74ada32663cc9bc04ee5e64bd1e0f83 /gr-utils/src/python/modtool/cmakefile_editor.py
parentede34060de27184eb6f6df6b5fd03ae8a643bf91 (diff)
downloadgnuradio-2d695b3c4c86b5c206f95dcc1d71f97d808d98b8.tar.gz
gnuradio-2d695b3c4c86b5c206f95dcc1d71f97d808d98b8.tar.bz2
gnuradio-2d695b3c4c86b5c206f95dcc1d71f97d808d98b8.zip
modtool: cleanup, bugfixes
Diffstat (limited to 'gr-utils/src/python/modtool/cmakefile_editor.py')
-rw-r--r--gr-utils/src/python/modtool/cmakefile_editor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-utils/src/python/modtool/cmakefile_editor.py b/gr-utils/src/python/modtool/cmakefile_editor.py
index 92121dda3..3d90b8d16 100644
--- a/gr-utils/src/python/modtool/cmakefile_editor.py
+++ b/gr-utils/src/python/modtool/cmakefile_editor.py
@@ -49,7 +49,7 @@ class CMakeFileEditor(object):
"""Remove an entry from the current buffer."""
regexp = '%s\s*\([^()]*%s[^()]*\)[^\n]*\n' % (entry, value_pattern)
regexp = re.compile(regexp, re.MULTILINE)
- (self.cfile, nsubs) = re.sub(regexp, '', self.cfile, count=1)
+ (self.cfile, nsubs) = re.subn(regexp, '', self.cfile, count=1)
return nsubs
def write(self):