Page MenuHomeSolus

Update flask to 1.0.3 and drop python2 support
ClosedPublic

Authored by maverick1 on May 18 2019, 1:47 PM.
Tags
None
Referenced Files
F11030419: D6322.diff
Wed, Aug 9, 11:00 AM
F10913981: D6322.id15339.diff
Jul 8 2023, 12:19 AM
F10848894: D6322.id15339.diff
Jun 11 2023, 5:06 PM
F10848846: D6322.id15226.diff
Jun 11 2023, 4:54 PM
F10827113: D6322.diff
Jun 4 2023, 4:33 AM
F10766335: D6322.id.diff
May 19 2023, 5:51 PM
F10744290: D6322.id.diff
May 15 2023, 12:01 AM
F10714492: D6322.diff
May 3 2023, 7:31 PM
Subscribers

Details

Summary

Update flask to 1.0.3 and drop python2 support

Changes

  • Allow custom CLIs using FlaskGroup to set the debug flag without it always being overwritten based on environment variables.
  • flask --version outputs Werkzeug's version and simplifies the Python version.
  • A catch-all error handler registered for HTTPException will not handle RoutingException, which is used internally during routing.
  • Passing the json argument to app.test_client does not push/pop an extra app context.
  • :func:send_file encodes filenames as ASCII instead of Latin-1 (ISO-8859-1). This fixes compatibility with Gunicorn, which is stricter about header encodings than PEP 3333.
Test Plan

Ran flask server with simple flask routing code.

Diff Detail

Repository
R765 flask
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage