diff options
author | Håkon Vågsether <haakonsv@gmail.com> | 2017-08-21 11:35:08 +0200 |
---|---|---|
committer | Håkon Vågsether <haakonsv@gmail.com> | 2017-08-21 11:35:08 +0200 |
commit | 5ee319cb49a5a344521f33b123b4ad0d0927163a (patch) | |
tree | 2bd6c840a40fa816397d3a078e4070cc73658bed /gr-utils/python/modtool/modtool_rename.py | |
parent | afd7c8e43659ec461ae4c4859ecf55ba95304255 (diff) |
Fix typos from switch to Python 3
Diffstat (limited to 'gr-utils/python/modtool/modtool_rename.py')
-rw-r--r-- | gr-utils/python/modtool/modtool_rename.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-utils/python/modtool/modtool_rename.py b/gr-utils/python/modtool/modtool_rename.py index 4973aa9e78..c2229f28fb 100644 --- a/gr-utils/python/modtool/modtool_rename.py +++ b/gr-utils/python/modtool/modtool_rename.py @@ -62,7 +62,7 @@ class ModToolRename(ModTool): # first make sure the old block name is provided self._info['oldname'] = options.blockname if self._info['oldname'] is None: - self._info['oldname'] = eval(input("Enter name of block/code to rename (without module name prefix): ")) + self._info['oldname'] = input("Enter name of block/code to rename (without module name prefix): ") if not re.match('[a-zA-Z0-9_]+', self._info['oldname']): raise ModToolException('Invalid block name.') print("Block/code to rename identifier: " + self._info['oldname']) @@ -70,7 +70,7 @@ class ModToolRename(ModTool): # now get the new block name if options.new_name is None: - self._info['newname'] = eval(input("Enter name of block/code (without module name prefix): ")) + self._info['newname'] = input("Enter name of block/code (without module name prefix): ") else: self._info['newname'] = options.new_name[0] if not re.match('[a-zA-Z0-9_]+', self._info['newname']): |