From 3e32c5acfb44cd63a44277bef375b1dc4700a303 Mon Sep 17 00:00:00 2001 From: rsteube Date: Sun, 30 Jun 2024 11:08:55 +0200 Subject: [PATCH] xonsh: fix import --- example/cmd/_test/xonsh.py | 2 +- internal/shell/xonsh/snippet.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/cmd/_test/xonsh.py b/example/cmd/_test/xonsh.py index 1b6b4858..141cb339 100644 --- a/example/cmd/_test/xonsh.py +++ b/example/cmd/_test/xonsh.py @@ -18,7 +18,7 @@ def fix_prefix(s): if not output: return - for c in json.loads(output): + for c in loads(output): yield RichCompletion( c["Value"], display=c["Display"], diff --git a/internal/shell/xonsh/snippet.go b/internal/shell/xonsh/snippet.go index 6bba3631..9c04e69c 100644 --- a/internal/shell/xonsh/snippet.go +++ b/internal/shell/xonsh/snippet.go @@ -32,7 +32,7 @@ def _%v_completer(context): if not output: return - for c in json.loads(output): + for c in loads(output): yield RichCompletion( c["Value"], display=c["Display"],