summaryrefslogtreecommitdiff
path: root/gr-utils/python/modtool/modtool_rename.py
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2017-09-22 16:27:15 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2017-09-22 16:27:15 -0700
commit1ca375a1abdba35e34c42603e25d5d0118a639d2 (patch)
tree17df66d901178473b2ce7cfec4f75fef26d79b55 /gr-utils/python/modtool/modtool_rename.py
parentb8f97b1694c1244103b9f02a27cc47c260422c7a (diff)
parent5ee319cb49a5a344521f33b123b4ad0d0927163a (diff)
Merge remote-tracking branch 'github/pr/1435' into python3
Diffstat (limited to 'gr-utils/python/modtool/modtool_rename.py')
-rw-r--r--gr-utils/python/modtool/modtool_rename.py4
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']):