summaryrefslogtreecommitdiff
path: root/examples/complex
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2020-03-08 08:57:08 -0700
committerDavid Lord <davidism@gmail.com>2020-03-08 08:57:08 -0700
commit718485be48263056e7036ea9a60ce11b47e2fc26 (patch)
tree0fa1b49ed926f18ab3d247c2cacada892908123a /examples/complex
parentf8f02bfc63cb6e63b7a3373384758f7226553408 (diff)
downloadclick-718485be48263056e7036ea9a60ce11b47e2fc26.tar.gz
manual cleanup
Diffstat (limited to 'examples/complex')
-rw-r--r--examples/complex/complex/cli.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/complex/complex/cli.py b/examples/complex/complex/cli.py
index 5e75f58..c539fe8 100644
--- a/examples/complex/complex/cli.py
+++ b/examples/complex/complex/cli.py
@@ -41,7 +41,9 @@ class ComplexCLI(click.MultiCommand):
try:
if sys.version_info[0] == 2:
name = name.encode("ascii", "replace")
- mod = __import__("complex.commands.cmd_" + name, None, None, ["cli"])
+ mod = __import__(
+ "complex.commands.cmd_{}".format(name), None, None, ["cli"]
+ )
except ImportError:
return
return mod.cli