Skip to content

Commit 03bd9c0

Browse files
committed
Fixed log.log() to hand on the right type (str) to underlying functions.
- Legacy-Id: 17343
1 parent af0c189 commit 03bd9c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/utils/log.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright The IETF Trust 2007-2019, All Rights Reserved
1+
# Copyright The IETF Trust 2007-2020, All Rights Reserved
22
# -*- coding: utf-8 -*-
33

44

@@ -55,7 +55,7 @@ def _flushfunc():
5555
elif settings.DEBUG == True:
5656
_logfunc = debug.say
5757
_flushfunc = sys.stdout.flush # pyflakes:ignore (intentional redefinition)
58-
if isinstance(msg, six.text_type):
58+
if not isinstance(msg, str):
5959
msg = msg.encode('unicode_escape')
6060
try:
6161
mod, cls, func, file, line = getcaller()

0 commit comments

Comments
 (0)