mako icon indicating copy to clipboard operation
mako copied to clipboard

cgi module removed in Python 3.13

Open jelly opened this issue 1 year ago • 1 comments

The wsgi example still uses cgi.FieldStorage which is removed in Python 3.13.

jelly avatar Jun 01 '24 11:06 jelly

we can accept PRs thanks!

zzzeek avatar Jun 04 '24 17:06 zzzeek

The legacy-cgi package will install into the cgi namespace and provide backwards compatibility in this situation.

This isn't part of the core library; creating a new "examples" configuration and catching this could be done - but few people will think of it.

Perhaps a docstring might help -- but anyone running into this issue may find this comment and just pip install legacy-cgi.

jvanasco avatar Jul 15 '25 14:07 jvanasco