From 10b527e20f9ef3d39b177584a0724d1685491198 Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Fri, 8 Jul 2016 13:34:04 -0700 Subject: [PATCH] Typo: text_type -> text_t --- kombu/utils/json.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kombu/utils/json.py b/kombu/utils/json.py index cd3f05e4..40518af6 100644 --- a/kombu/utils/json.py +++ b/kombu/utils/json.py @@ -40,7 +40,7 @@ class JSONEncoder(_encoder_cls): textual=(decimal.Decimal, uuid.UUID, DjangoPromise), isinstance=isinstance, datetime=datetime.datetime, - text_type=text_t): + text_t=text_t): reducer = getattr(o, '__json__', None) if reducer is not None: return reducer() @@ -55,7 +55,7 @@ class JSONEncoder(_encoder_cls): elif isinstance(o, times): return o.isoformat() elif isinstance(o, textual): - return text_type(o) + return text_t(o) return super(JSONEncoder, self).default(o)