Skip to content
Myr

Merge pull request #3185 from EtiennePelletier/Flask-3022

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

Simplify flask.cli.main

authored by David Lord · committed by GitHub · parents 5a49b96, e0afff0 · Browse files · 2 files+4 added−17 removed
This commit

State

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

Diff stats

2 files+4 added−17 removed

  • other:+4 added−17 removed

2 files+4 added−17 removed

modified:flask/cli.py+1 added-17 removed
905 unmodified lines
906)907908909def main(as_module=False):910 args = sys.argv[1:]910 cli.main(prog_name="python -m flask" if as_module else None)911912 if as_module:913 this_module = "flask"912915 if sys.version_info < (2, 7):916 this_module += ".cli"917918 name = "python -m " + this_module919920 # Python rewrites "python -m flask" to the path to the file in argv.921 # Restore the original command so that the reloader works.922 sys.argv = ["-m", this_module] + args923 else:924 name = None925926 cli.main(args=args, prog_name=name)927928913if __name__ == "__main__":914 main(as_module=True)
modified:CHANGES.rst+3 added
31 unmodified lines
32- Flask's ``JSONMixin`` for the request and response wrappers was33 moved into Werkzeug. Use Werkzeug's version with Flask-specific34 support. This bumps the Werkzeug dependency to >= 0.15.35 :issue:`3125`36- The ``flask`` command entry point is simplified to take advantage37 of Werkzeug 0.15's better reloader support. This bumps the Werkzeug38 dependency to >= 0.15. :issue:`3022`3940.. _#2935: https://github.com/pallets/flask/issues/293541.. _#2957: https://github.com/pallets/flask/issues/295742.. _#2994: https://github.com/pallets/flask/pull/2994
948 unmodified lines