[Debian-med-packaging] Bug#1084684: Bug#1084684: paleomix: removal of Python standard libraries in Python 3.13
Étienne Mollier
emollier at debian.org
Wed Oct 9 16:36:44 BST 2024
Control: tags -1 + fixed-upstream patch
Hi,
I have been devising on the below patch, and noted that the
affected file disappeared from upstream repository. I guess
this will be resolved once the newer revision will be uploaded,
once it is out.
I keep the patch around in case someone hits a similar situation
with pipes being imported for it's use of the undocumented quote
function; python3.12 happened to use straight shlex to provide
pipes' quote implementation, so it is almost a no-op:
-------8<--------------8<--------------8<--------------8<-------
--- paleomix.orig/paleomix/atomiccmd/pprint.py
+++ paleomix/paleomix/atomiccmd/pprint.py
@@ -21,7 +21,7 @@
# SOFTWARE.
#
import os
-import pipes
+import shlex
import subprocess
@@ -168,7 +168,7 @@
to be exceeded."""
result = [[]]
current_width = 0
- for item in (pipes.quote(str(value)) for value in lst):
+ for item in (shlex.quote(str(value)) for value in lst):
if current_width + len(item) + 1 > width:
if not result[-1]:
result[-1] = [item]
-------8<--------------8<--------------8<--------------8<-------
Have a nice day, :)
--
.''`. Étienne Mollier <emollier at debian.org>
: :' : pgp: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da
`. `' sent from /dev/pts/6, please excuse my verbosity
`- on air: Transatlantic - All Of The Above
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20241009/e2e89795/attachment.sig>
More information about the Debian-med-packaging
mailing list