File tree 6 files changed +4
-16
lines changed
6 files changed +4
-16
lines changed Original file line number Diff line number Diff line change 7
7
import logging
8
8
import os
9
9
import re
10
+ import shlex
10
11
import shutil
11
12
import threading
12
13
import urllib
31
32
cast ,
32
33
)
33
34
34
- import shellescape
35
35
from mypy_extensions import mypyc_attr
36
36
from ruamel .yaml .comments import CommentedMap , CommentedSeq
37
37
from schema_salad .avro .schema import Schema
@@ -1164,7 +1164,7 @@ def register_reader(f: CWLObjectType) -> None:
1164
1164
for b in builder .bindings :
1165
1165
arg = builder .generate_arg (b )
1166
1166
if b .get ("shellQuote" , True ):
1167
- arg = [shellescape .quote (a ) for a in aslist (arg )]
1167
+ arg = [shlex .quote (a ) for a in aslist (arg )]
1168
1168
cmd .extend (aslist (arg ))
1169
1169
j .command_line = ["/bin/sh" , "-c" , " " .join (cmd )]
1170
1170
else :
Original file line number Diff line number Diff line change 5
5
import math
6
6
import os
7
7
import re
8
+ import shlex
8
9
import shutil
9
10
import signal
10
11
import stat
35
36
)
36
37
37
38
import psutil
38
- import shellescape
39
39
from prov .model import PROV
40
40
from schema_salad .sourceline import SourceLine
41
41
from schema_salad .utils import json_dump , json_dumps
@@ -271,7 +271,7 @@ def _execute(
271
271
self .outdir ,
272
272
" \\ \n " .join (
273
273
[
274
- shellescape .quote (str (arg )) if shouldquote (str (arg )) else str (arg )
274
+ shlex .quote (str (arg )) if shouldquote (str (arg )) else str (arg )
275
275
for arg in (runtime + self .command_line )
276
276
]
277
277
),
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
requests >= 2.6.1
2
2
ruamel.yaml >= 0.16.0 ,< 0.19
3
3
rdflib >= 4.2.2 ,< 7.1
4
- shellescape >= 3.4.1 ,< 3.9
5
4
schema-salad >= 8.7 ,< 9
6
5
prov == 1.5.1
7
6
mypy-extensions
Original file line number Diff line number Diff line change 126
126
# https://github.com/ionrock/cachecontrol/issues/137
127
127
"ruamel.yaml >= 0.16, < 0.19" ,
128
128
"rdflib >= 4.2.2, < 7.1.0" ,
129
- "shellescape >= 3.4.1, < 3.9" ,
130
129
"schema-salad >= 8.7, < 9" ,
131
130
"prov == 1.5.1" ,
132
131
"mypy-extensions" ,
You can’t perform that action at this time.
0 commit comments