Browse Source

Merge pull request #2338 from pallets/cleanup-2326

cleanup #2326
pull/2340/head
Kenneth Reitz 8 years ago committed by GitHub
parent
commit
a4869eb4d2
  1. 2
      flask/cli.py

2
flask/cli.py

@ -101,7 +101,7 @@ def find_app_by_string(string, script_info, module):
"""Checks if the given string is a variable name or a function. If it is """Checks if the given string is a variable name or a function. If it is
a function, it checks for specified arguments and whether it takes a function, it checks for specified arguments and whether it takes
a ``script_info`` argument and calls the function with the appropriate a ``script_info`` argument and calls the function with the appropriate
arguments. If it is a """ arguments."""
from . import Flask from . import Flask
function_regex = r'^(?P<name>\w+)(?:\((?P<args>.*)\))?$' function_regex = r'^(?P<name>\w+)(?:\((?P<args>.*)\))?$'
match = re.match(function_regex, string) match = re.match(function_regex, string)

Loading…
Cancel
Save