From 8ebb07e578914d8037fa5055ff8a34506ab5e285 Mon Sep 17 00:00:00 2001 From: Felix Martin Date: Thu, 11 Jun 2026 08:18:06 -0400 Subject: [PATCH] Hoist shlex to module-level import in cli Co-Authored-By: Claude Opus 4.8 --- src/hqt/cli.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hqt/cli.py b/src/hqt/cli.py index 9e99188..3d3a5c9 100644 --- a/src/hqt/cli.py +++ b/src/hqt/cli.py @@ -1,5 +1,6 @@ import logging import os +import shlex import subprocess import sys import traceback @@ -185,8 +186,6 @@ def _palette_popup_command(window: str) -> str: concrete here (run-shell already expanded #{window_name} before `hqt palette` ran). The selected entry runs `hqt tool `. """ - import shlex - entries = "\\n".join(PALETTE_ENTRIES) + "\\n" return ( f"printf '{entries}' | "