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"],