Skip to content
Myr

Merge pull request #3728 from nphilipp/master--discover-app-factory-deterministically

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

Discover app factory deterministically

authored by David Lord · committed by GitHub · parents 8c6baee, cf3089a · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/flask/cli.py+1 added-1 removed
58 unmodified lines
59 f" to specify the correct one."60 )6162 # Search for app factory functions.63 for attr_name in {"create_app", "make_app"}:63 for attr_name in ("create_app", "make_app"):64 app_factory = getattr(module, attr_name, None)6566 if inspect.isfunction(app_factory):67 try:
895 unmodified lines