Skip to content

Commit

Permalink
cleanup #2326
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethreitz committed May 26, 2017
1 parent e26cc8f commit 7c0b36f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flask/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ def call_factory(app_factory, script_info, arguments=()):


def find_app_by_string(string, script_info, module):
"""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 ``script_info`` argument and calls the function with the appropriate
arguments. If it is a """
"""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 ``script_info`` argument and calls the function with the appropriate
arguments."""
from . import Flask
function_regex = r'^(?P<name>\w+)(?:\((?P<args>.*)\))?$'
match = re.match(function_regex, string)
Expand Down

0 comments on commit 7c0b36f

Please sign in to comment.