Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

remove deprecated code#4337

Merged
davidism merged 7 commits intomainfrom
remove-deprecated-code
Nov 12, 2021
Merged

remove deprecated code#4337
davidism merged 7 commits intomainfrom
remove-deprecated-code

Conversation

@davidism
Copy link
Member

Removed:

  • script_info is no longer passed as the first arg / matching kwarg to an app factory function. It is no longer passed as the first arg to many internal CLI functions.
  • config.from_json, useconfig.from_file(path, json.load) instead.
  • json functions no longer take anencoding parameter.
  • safe_join, usewerkzeug.utils.safe_join instead.
  • total_seconds, usetimedelta.total_seconds instead.
  • The same blueprint can't be registered with the same name, every registration requires a unique, possibly nested, name.

Some parameters tosend_file andsend_from_directory were renamed to be more accurate to what they did when moving the implementations to Werkzeug. These old names were deprecated in Flask's wrappers. The deprecation period has been extended to 2.2.attachment_filename is renamed todownload_name,cache_timeout is renamed tomax_age,add_etags is renamed toetag, andfilename is renamed topath.

@davidismdavidism added this to the2.1.0 milestoneNov 12, 2021
@davidismdavidism merged commit7620cb7 intomainNov 12, 2021
@davidismdavidism deleted the remove-deprecated-code branchNovember 12, 2021 17:54
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsNov 27, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

2.1.0

Development

Successfully merging this pull request may close these issues.

1 participant

@davidism

Comments


[8]ページ先頭

©2009-2026 Movatter.jp