mkogg.py: Fix 'unicode' -> 'str'
authorW. Trevor King <wking@tremily.us>
Tue, 25 Aug 2015 03:49:38 +0000 (20:49 -0700)
committerW. Trevor King <wking@tremily.us>
Tue, 25 Aug 2015 03:49:38 +0000 (20:49 -0700)
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

index 07ef572f522aed5381816927ef558c77b7ec62c9..378906a784a8e2722237fbe9da876ebaa70b0883 100755 (executable)
@@ -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: