Skip to content

Commit

Permalink
remove lazy importer, fix circular imports
Browse files Browse the repository at this point in the history
(cherry picked from commit 487ab58)

deprecate top-level imports

(cherry picked from commit 08536c4)
  • Loading branch information
davidism committed Sep 16, 2019
1 parent 71eab19 commit 5493918
Show file tree
Hide file tree
Showing 16 changed files with 290 additions and 499 deletions.
18 changes: 18 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
.. currentmodule:: werkzeug

Version 0.16.0
--------------

Unreleased

- Deprecate most top-level attributes provided by the ``werkzeug``
module in favor of direct imports. The deprecated imports will be
removed in version 1.0.

For example, instead of ``import werkzeug; werkzeug.url_quote``, do
``from werkzeug.urls import url_quote. A deprecation warning will
show the correct import to use. ``werkzeug.exceptions`` and
``werkzeug.routing`` should also be imported instead of accessed,
but for technical reasons can't show a warning.

:issue:`2`, :pr:`1640`


Version 0.15.6
--------------

Expand Down

0 comments on commit 5493918

Please sign in to comment.