Skip to content

htmlmin fires warning in python 3.11 and is not maintained anymore #25

@ldeluigi

Description

@ldeluigi
INFO     -  DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
  File "/usr/local/lib/python3.11/warnings.py", line 514, in _deprecated
    warn(msg, DeprecationWarning, stacklevel=3)
  File "/usr/local/lib/python3.11/site-packages/htmlmin/main.py", line 28, in
    import cgi

The original issue: mankyd/htmlmin#66

The latest commit in https://github.com/mankyd/htmlmin is from 2017.
Maybe it's time to move to a different html minifier?
Also you could avoid importing a HTML minifier if minify_html option is false (same for the others)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions