Skip to content

[current default branch] werkzeug always raises a warning on import #1933

Description

@asottile
$ python -Werror -c 'import werkzeug'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/werkzeug/src/werkzeug/__init__.py", line 2, in <module>
    from .test import Client
  File "/tmp/werkzeug/src/werkzeug/test.py", line 46, in <module>
    from .utils import get_content_type
  File "/tmp/werkzeug/src/werkzeug/utils.py", line 303, in <module>
    html = HTMLBuilder("html")
  File "/tmp/werkzeug/src/werkzeug/utils.py", line 234, in __init__
    warnings.warn(
DeprecationWarning: 'utils.HTMLBuilder' is deprecated and will be removed in 2.1.

Environment:

  • Python version:

    $ python --version --version
    Python 3.8.2 (default, Jul 16 2020, 14:00:26) 
    [GCC 9.3.0]
  • Werkzeug version: d7eebd2

This appears to be caused by #1772

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions