From 03bd9c05942f636c9d0773e4ae26c7ea5c4789ef Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Wed, 26 Feb 2020 17:16:35 +0000 Subject: [PATCH] Fixed log.log() to hand on the right type (str) to underlying functions. - Legacy-Id: 17343 --- ietf/utils/log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ietf/utils/log.py b/ietf/utils/log.py index 8fe9466c2..79fc27079 100644 --- a/ietf/utils/log.py +++ b/ietf/utils/log.py @@ -1,4 +1,4 @@ -# Copyright The IETF Trust 2007-2019, All Rights Reserved +# Copyright The IETF Trust 2007-2020, All Rights Reserved # -*- coding: utf-8 -*- @@ -55,7 +55,7 @@ def log(msg, e=None): elif settings.DEBUG == True: _logfunc = debug.say _flushfunc = sys.stdout.flush # pyflakes:ignore (intentional redefinition) - if isinstance(msg, six.text_type): + if not isinstance(msg, str): msg = msg.encode('unicode_escape') try: mod, cls, func, file, line = getcaller()