From c23ff112202b8d5b4019d8513b6ac4fb5a0755fd Mon Sep 17 00:00:00 2001 From: Dulmandakh Date: Sat, 6 Jul 2024 10:45:40 +0800 Subject: [PATCH] decode --- graphene/utils/deprecated.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphene/utils/deprecated.py b/graphene/utils/deprecated.py index 9a8b14af..c51bd684 100644 --- a/graphene/utils/deprecated.py +++ b/graphene/utils/deprecated.py @@ -27,9 +27,9 @@ def deprecated(reason): def decorator(func1): if inspect.isclass(func1): - fmt1 = f"Call to deprecated class {func1.__name__} ({reason!r})." + fmt1 = f"Call to deprecated class {func1.__name__} ({reason.decode()})." else: - fmt1 = f"Call to deprecated function {func1.__name__} ({reason!r})." + fmt1 = f"Call to deprecated function {func1.__name__} ({reason.decode()})." @functools.wraps(func1) def new_func1(*args, **kwargs):