[helper] replace pipes.quote with shlex.quote (#9757)

pipes got deprecated in

2551a6c92f
and Python3.11 complains about it:
```
infra/helper.py:27: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13
  import pipes
```

The pipes module just uses shlex.quote so it can be used direcly
instead.
This commit is contained in:
Evgeny Vereshchagin 2023-02-21 21:11:42 +03:00 committed by GitHub
parent a93638ce02
commit 5c70a2e14a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,8 @@ import datetime
import errno
import logging
import os
import pipes
import re
import shlex
import shutil
import subprocess
import sys
@ -542,7 +542,7 @@ def _get_absolute_path(path):
def _get_command_string(command):
"""Returns a shell escaped command string."""
return ' '.join(pipes.quote(part) for part in command)
return ' '.join(shlex.quote(part) for part in command)
def _get_project_build_subdir(project, subdir_name):