From: W. Trevor King Date: Tue, 25 Aug 2015 03:49:38 +0000 (-0700) Subject: mkogg.py: Fix 'unicode' -> 'str' X-Git-Url: http://git.tremily.us/?p=blog.git;a=commitdiff_plain;h=a4452a7cf3e9c65a71648d50321868d6dfadc471 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). --- 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: