From 092c686b913346259036dcb942e65b99a8fb1402 Mon Sep 17 00:00:00 2001 From: Duy Hung <66005831+raisinbl@users.noreply.github.com> Date: Sun, 12 Jan 2025 15:48:08 +0700 Subject: [PATCH] fix: no modules pipes when running sqlline.py --- bin/phoenix_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/phoenix_utils.py b/bin/phoenix_utils.py index 48e7a42d5ab..7e77db6df59 100755 --- a/bin/phoenix_utils.py +++ b/bin/phoenix_utils.py @@ -216,9 +216,9 @@ def shell_quote(args): import subprocess return subprocess.list2cmdline(args) else: - # pipes module isn't available on Windows - import pipes - return " ".join([pipes.quote(tryDecode(v)) for v in args]) + # *nix + import shlex + return " ".join([shlex.quote(tryDecode(v)) for v in args]) def __set_java_home():