From 6abd24b22aad007cf6f5909df1d51fa110a72e57 Mon Sep 17 00:00:00 2001 From: mu <59917266+4eUeP@users.noreply.github.com> Date: Mon, 9 Jan 2023 21:32:02 +0800 Subject: [PATCH] denite: fix IntEnum str representation for python3.11 --- rplugin/python3/denite/lsp/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rplugin/python3/denite/lsp/protocol.py b/rplugin/python3/denite/lsp/protocol.py index ac8564ba0..99ad684d1 100644 --- a/rplugin/python3/denite/lsp/protocol.py +++ b/rplugin/python3/denite/lsp/protocol.py @@ -50,6 +50,6 @@ def describe(self): if e == SymbolKind.Unknown: s = "" else: - s = re.sub("([a-z])([A-Z])", r"\g<1> \g<2>", str(e).split(".", 1)[1]) + s = re.sub("([a-z])([A-Z])", r"\g<1> \g<2>", e.name) SymbolKind._pprint_map[int(e)] = s