Skip to content

Commit 9e0898e

Browse files
authored
Merge pull request #3298 from shadchin/python313
Replace pipes.quote with shlex.quote
2 parents 06bdf64 + 6633c7e commit 9e0898e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

luigi/contrib/hadoop_jar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
import logging
2222
import os
23-
import pipes
2423
import random
24+
import shlex
2525
import warnings
2626

2727
import luigi.contrib.hadoop
@@ -110,7 +110,7 @@ def run_job(self, job, tracking_url_callback=None):
110110
arglist += ['-o', 'UserKnownHostsFile=/dev/null',
111111
'-o', 'StrictHostKeyChecking=no']
112112
arglist.append('{}@{}'.format(username, host))
113-
hadoop_arglist = [pipes.quote(arg) for arg in hadoop_arglist]
113+
hadoop_arglist = [shlex.quote(arg) for arg in hadoop_arglist]
114114
arglist.append(' '.join(hadoop_arglist))
115115
else:
116116
if not os.path.exists(job.jar()):

0 commit comments

Comments
 (0)