From a4452a7cf3e9c65a71648d50321868d6dfadc471 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 24 Aug 2015 20:49:38 -0700 Subject: [PATCH] mkogg.py: Fix 'unicode' -> 'str' I'd missed this in my last pass at converting to Python 3 (abe5f261, mkogg.py: Update to Python 3, 2015-07-13). --- posts/mkogg/mkogg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posts/mkogg/mkogg.py b/posts/mkogg/mkogg.py index 07ef572..378906a 100755 --- a/posts/mkogg/mkogg.py +++ b/posts/mkogg/mkogg.py @@ -309,7 +309,7 @@ class Converter (object): for id3_encoding,encoding in [(0, 'ISO-8859-1'), (3, 'utf-8')]: encoding_success = True for text in text_list: - if isinstance(text, unicode): + if isinstance(text, str): try: text.encode(encoding) except UnicodeEncodeError: -- 2.26.2