#39 replacing pipes with shlex
Merged 2 years ago by otaylor. Opened 2 years ago by crisdel.
crisdel/flatpak-module-tools fixpipes  into  main

@@ -6,7 +6,7 @@ 

  import logging

  import os

  from tempfile import NamedTemporaryFile

- import pipes

+ import shlex

  import subprocess

  import sys

  from typing import IO, Optional, NoReturn, cast
@@ -51,7 +51,7 @@ 

  

  def log_call(args):

      click.secho('running: ', fg='blue', bold=True, err=True, nl=False)

-     click.echo(' '.join(pipes.quote(str(a)) for a in args), err=True)

+     click.echo(' '.join(shlex.quote(str(a)) for a in args), err=True)

  

  

  def check_call(args, cwd=None, stdout=None):

Pull-Request has been merged by otaylor

2 years ago
Metadata