Hello, I got the attached bug report about the package jsxgraph, which I maintain for the debian distribution (its "popularity count" amounts to 56, which is quite significant for a package which is not targetted to most individual users)
It is about the usage of the library *cgi* which will be removed from Python3.13, about to become the stable version of Python3 in a few months. Unfortunately I could not find an easy fix for this issue, probably because of my misunderstanding of JXG server's internals. For example, I could not find easily a replacement for some code in src/server/JXGServer.py: ------------------------8<---------------------- import cgi ... # Get Data from post/get parameters form = cgi.FieldStorage(); action = form.getfirst('action', 'empty') ... ------------------------8<---------------------- I ignore whether the line "form = cgi.FieldStorage()" is run in the context of a GET or the context of a POST request. Please can you help me about that? The page https://docs.python.org/3.13/whatsnew/3.13.html#whatsnew313-pep594 gives useful hints, but they depend upon the context: - use urllib.parse.parse_qsl() for GET requests - use the multipart library for POST requests Thank you in advance for your enlightenments. Best regards, Georges. -- Georges KHAZNADAR et Jocelyne FOURNIER 22 rue des mouettes, 59240 Dunkerque France. Téléphone +33 (0)3 28 29 17 70
--- Begin Message ---Source: jsxgraph Severity: important User: debian-pyt...@lists.debian.org Usertags: pep-594-deprecation-313 Dear maintainer(s),Python 3.13 removes a large amount of so called 'dead battery' libraries from the standard library. As such, code that imports these libraries will no longer work in Python 3.13, which is the targeted version for Trixie.The following removed libraries were found in this package: cgi: src/server/JXGServer.py:8 cgi: src/server/geoloci.py:25 cgi: src/server/jxggroebner.py:40See this link for more details: https://peps.python.org/pep-0594/#deprecated-modulesCheers, -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Louis-Philippe Véronneau ⢿⡄⠘⠷⠚⠋ po...@debian.org / veronneau.org ⠈⠳⣄
--- End Message ---
signature.asc
Description: PGP signature