summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2019-07-20 17:23:43 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2019-07-20 17:23:43 -0400
commit4ed15ba0433c0ee1a6fea1edef865fa9bd241c6e (patch)
tree5ca9bdd316b5fa6faa3729a38feb49ae6ebac863
parent503814c92ae2a39d5cb6af7f6c172a33a16d5018 (diff)
downloadcmd2-git-4ed15ba0433c0ee1a6fea1edef865fa9bd241c6e.tar.gz
Fix bogus flake8 warning due to exec()'ed code
-rw-r--r--cmd2/cmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 12659e64..24de85a8 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -3351,7 +3351,7 @@ class Cmd(cmd.Cmd):
:param cmd2_app: the instance of the cmd2 app
"""
# Create a variable pointing to a PyBridge and name it using the value of py_bridge_name
- bridge = PyBridge(cmd2_app)
+ bridge = PyBridge(cmd2_app) # noqa: F841
exec("{} = bridge".format(cmd2_app.py_bridge_name))
# Add self variable pointing to cmd2_app, if allowed