[tahoe-lafs-trac-stream] [Tahoe-LAFS] #4123: Tahoe-LAFS depends on removed `cgi` stdlib module
Tahoe-LAFS
trac at tahoe-lafs.org
Wed Oct 16 18:45:17 UTC 2024
#4123: Tahoe-LAFS depends on removed `cgi` stdlib module
---------------------+---------------------------
Reporter: cypher | Owner:
Type: defect | Status: new
Priority: normal | Milestone: undecided
Component: unknown | Version: n/a
Keywords: | Launchpad Bug:
---------------------+---------------------------
Tahoe-LAFS' `allmydata.webish` module currently depends on
`cgi.FieldStorage` from the Python standard library in order to
"[https://github.com/tahoe-lafs/tahoe-
lafs/blob/6d37fa6c9d236f8eb369bd2bc61932137f381e7f/src/allmydata/webish.py#L44
do terrible things to ensure files are still bytes]".
The `cgi` module, however, was recently (as of Python 3.13) removed as
part of the [https://peps.python.org/pep-0594/#cgi PEP-0594 initiative] --
of "removing dead batteries from the standard library".
In order to provide compatibility with Python 3.13, then, a suitable `cgi`
replacement module will need to be found and/or the dependent codepaths
will need to be updated accordingly. (There may, of course, be other
outstanding work/issues that further prevent Python 3.13 compatibility;
this is just one such issue).
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/4123>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list