diff options
author | Swapnil Negi <swapnil.negi09@gmail.com> | 2018-04-05 04:59:16 +0530 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-04-06 15:13:27 -0700 |
commit | 48542c39a24a32c628dc4b59efa5545b2112ea57 (patch) | |
tree | b428714d7377c4f05c2aa68b1fc8d9c91cc90eac /gr-utils/python/modtool/modtool_rename.py | |
parent | 6e91f2ecf17db6f7ac810faf18e7ea719247d8d4 (diff) |
modtool: Pylint error fixes
Diffstat (limited to 'gr-utils/python/modtool/modtool_rename.py')
-rw-r--r-- | gr-utils/python/modtool/modtool_rename.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/gr-utils/python/modtool/modtool_rename.py b/gr-utils/python/modtool/modtool_rename.py index cc6bd3bd02..dd9b0eaee8 100644 --- a/gr-utils/python/modtool/modtool_rename.py +++ b/gr-utils/python/modtool/modtool_rename.py @@ -23,13 +23,7 @@ import os import re from optparse import OptionGroup - -from util_functions import append_re_line_sequence, ask_yes_no -from cmakefile_editor import CMakeFileEditor from modtool_base import ModTool, ModToolException -from templates import Templates -from code_generator import get_template -import Cheetah.Template class ModToolRename(ModTool): @@ -47,8 +41,10 @@ class ModToolRename(ModTool): def setup_parser(self): parser = ModTool.setup_parser(self) ogroup = OptionGroup(parser, "Rename module options") - ogroup.add_option("-o", "--old-name", type="string", default=None, help="Current name of the block to rename.") - ogroup.add_option("-u", "--new-name", type="string", default=None, help="New name of the block.") + ogroup.add_option("-o", "--old-name", type="string", default=None, + help="Current name of the block to rename.") + ogroup.add_option("-u", "--new-name", type="string", default=None, + help="New name of the block.") parser.add_option_group(ogroup) return parser @@ -56,7 +52,7 @@ class ModToolRename(ModTool): ModTool.setup(self, options, args) if ((self._skip_subdirs['lib'] and self._info['lang'] == 'cpp') - or (self._skip_subdirs['python'] and self._info['lang'] == 'python')): + or (self._skip_subdirs['python'] and self._info['lang'] == 'python')): raise ModToolException('Missing or skipping relevant subdir.') # first make sure the old block name is provided |