Upgrading Werkzeug 0.15 to 0.16
Review needed0.15.6 → 0.16.1Deprecated2
Review neededUpgrade verdict
2 deprecations.
In plain terms
- Most shortcuts you could reach directly from the main werkzeug package are going away in version 1.0.0. Import them from their proper submodules instead.
- Import the exceptions and routing modules directly rather than reaching them through the main werkzeug package. These cannot show a warning.
Must act 2 items need code or config changes
Nothing in this upgrade needs a code or configuration change.
Deprecations to plan for
Deprecated2
Deprecates most top-level attributes in the werkzeug module, to be removed in 1.0.0.
werkzeugDeprecates accessing werkzeug.exceptions and werkzeug.routing as attributes; import them instead.
werkzeug.exceptionswerkzeug.routingAPI changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- removed:
class module(ModuleType) - removed:
variable all_by_module - removed:
variable attribute_modules - removed:
variable new_module - removed:
variable object_origins - removed:
variable old_module - added:
export Client - added:
export Request - added:
export Response - added:
export run_simple - added:
variable __version__
- removed:
class CharsetAccept(_CharsetAccept) - removed:
class Headers(_Headers) - removed:
class LanguageAccept(_LanguageAccept) - removed:
class MIMEAccept(_MIMEAccept) - removed:
constructor CharsetAccept(*args, **kwargs) - removed:
constructor Headers(*args, **kwargs) - removed:
constructor LanguageAccept(*args, **kwargs) - removed:
constructor MIMEAccept(*args, **kwargs)
- removed:
class UserAgentMixin(_UserAgentMixin) - removed:
property UserAgentMixin.user_agent
- removed:
class CombinedMultiDict(_CombinedMultiDict) - removed:
class EnvironHeaders(_EnvironHeaders) - removed:
class Headers(_Headers) - removed:
class MultiDict(_MultiDict) - removed:
constructor CombinedMultiDict(*args, **kwargs) - removed:
constructor EnvironHeaders(*args, **kwargs) - removed:
constructor Headers(*args, **kwargs) - removed:
constructor MultiDict(*args, **kwargs) - removed:
function dump_cookie(*args, **kwargs) - removed:
function parse_cookie(*args, **kwargs)
- removed:
class DispatcherMiddleware(_DispatcherMiddleware) - removed:
class ProxyMiddleware(_ProxyMiddleware) - removed:
class SharedDataMiddleware(_SharedDataMiddleware) - removed:
constructor DispatcherMiddleware(*args, **kwargs) - removed:
constructor ProxyMiddleware(*args, **kwargs) - removed:
constructor SharedDataMiddleware(*args, **kwargs)