Skip to content
Myr

Added a missing docstring

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 9841420 · Browse files · 1 file+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−2 removed

  • other:+4 added−2 removed

1 file+4 added−2 removed

modified:flask/cli.py+4 added-2 removed
51 unmodified lines
52 'using a factory function.' % module.__name__)535455def prepare_exec_for_file(filename):56 """Given a filename this will try to calculate the python path, add it57 to the search path and return the actual module name that is expected.58 """59 module = []6061 # Chop off file extensions or package markers62 if filename.endswith('.py'):
126 unmodified lines
189190 def __init__(self, help=None):191 def set_app_id(ctx, value):192 if value is not None:190 if os.path.isfile(value) or os.sep in value or \191 os.altsep is not None and os.altsep in value:193 if os.path.isfile(value):194 value = prepare_exec_for_file(value)195 ctx.obj.app_import_path = value196 def set_debug(ctx, value):197 ctx.obj.debug = value
152 unmodified lines