blob: d0b6fef30bd64cdacc6931d5a007abf1425b85a3 (
plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
diff -urN rpkg-util-preproc-orig/preproc rpkg-util-preproc/preproc
--- rpkg-util-preproc-orig/preproc 2022-08-06 08:08:56.990976147 +0200
+++ rpkg-util-preproc/preproc 2022-08-06 08:09:12.022647218 +0200
@@ -5,7 +5,7 @@
import subprocess
import tempfile
import argparse
-import pipes
+import shlex
import re
@@ -16,7 +16,7 @@
quoted_items = []
for i in range(len(cmd)):
- quoted_items.append(pipes.quote(cmd[i]))
+ quoted_items.append(shlex.quote(cmd[i]))
return ' '.join(quoted_items)
diff -urN rpkg-util-preproc-orig/preproc-pyparsing rpkg-util-preproc/preproc-pyparsing
--- rpkg-util-preproc-orig/preproc-pyparsing 2022-08-06 08:08:56.991976126 +0200
+++ rpkg-util-preproc/preproc-pyparsing 2022-08-06 08:09:18.289510084 +0200
@@ -5,7 +5,7 @@
import subprocess
import tempfile
import argparse
-import pipes
+import shlex
from pyparsing import Combine, CharsNotIn, Regex, ZeroOrMore, Suppress, Literal
@@ -17,7 +17,7 @@
quoted_items = []
for i in range(len(cmd)):
- quoted_items.append(pipes.quote(cmd[i]))
+ quoted_items.append(shlex.quote(cmd[i]))
return ' '.join(quoted_items)
|