Skip to content
Myr

Merge pull request #2338 from pallets/cleanup-2326

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

cleanup #2326

authored by Kenneth Reitz · committed by GitHub · parents e26cc8f, 7c0b36f · Browse files · 1 file+4 added−4 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−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:flask/cli.py+4 added-4 removed
96 unmodified lines
97 return app_factory()9899100def find_app_by_string(string, script_info, module):101 """Checks if the given string is a variable name or a function. If it is 102 a function, it checks for specified arguments and whether it takes 103 a ``script_info`` argument and calls the function with the appropriate 104 arguments. If it is a """101 """Checks if the given string is a variable name or a function. If it is102 a function, it checks for specified arguments and whether it takes103 a ``script_info`` argument and calls the function with the appropriate104 arguments."""105 from . import Flask106 function_regex = r'^(?P<name>\w+)(?:\((?P<args>.*)\))?$'107 match = re.match(function_regex, string)108 if match:
559 unmodified lines