From f9dae717ff13b6955ac7ffb8a1e91fb32fef15ce Mon Sep 17 00:00:00 2001 From: Jonatan Date: Wed, 24 Jan 2018 17:07:52 +0100 Subject: [PATCH] set __doc__ and __name__ for flask shell --- flask/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask/cli.py b/flask/cli.py index 3440d981..0d99c597 100644 --- a/flask/cli.py +++ b/flask/cli.py @@ -752,7 +752,7 @@ def shell_command(): app.env, app.instance_path, ) - ctx = {} + ctx = {'__doc__': None, '__name__': '__flaskshell__'} # Support the regular Python interpreter startup script if someone # is using it.