File: python3.13-pipes.patch

package info (click to toggle)
qtwebengine-opensource-src 5.15.18%2Bdfsg-2~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 2,115,048 kB
  • sloc: cpp: 13,169,354; ansic: 4,248,321; javascript: 1,917,440; python: 554,858; asm: 529,966; xml: 496,623; java: 151,702; objc: 80,776; perl: 73,361; sh: 71,244; cs: 30,383; makefile: 21,992; yacc: 9,125; tcl: 8,500; php: 5,896; sql: 5,518; pascal: 4,510; lex: 2,884; lisp: 2,727; ruby: 559; awk: 200; sed: 40
file content (27 lines) | stat: -rw-r--r-- 937 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: replace removed pipes module with shlex
Origin: upstream, https://chromium.googlesource.com/chromium/src/+/4c6fc1984970af4b
Last-Update: 2025-01-08

--- a/src/3rdparty/chromium/build/android/gyp/util/build_utils.py
+++ b/src/3rdparty/chromium/build/android/gyp/util/build_utils.py
@@ -12,8 +12,8 @@ import fnmatch
 import json
 import logging
 import os
-import pipes
 import re
+import shlex
 import shutil
 import stat
 import subprocess
@@ -197,8 +197,9 @@ class CalledProcessError(Exception):
   def __str__(self):
     # A user should be able to simply copy and paste the command that failed
     # into their shell.
+    printed_cmd = shlex.join(self.args)
     copyable_command = '( cd {}; {} )'.format(os.path.abspath(self.cwd),
-        ' '.join(map(pipes.quote, self.args)))
+                                              printed_cmd)
     return 'Command failed: {}\n{}'.format(copyable_command, self.output)