projects
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abe5f26
)
mkogg.py: Fix 'unicode' -> 'str'
author
W. Trevor King
<wking@tremily.us>
Tue, 25 Aug 2015 03:49:38 +0000
(20:49 -0700)
committer
W. 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
patch
|
blob
|
history
diff --git
a/posts/mkogg/mkogg.py
b/posts/mkogg/mkogg.py
index 07ef572f522aed5381816927ef558c77b7ec62c9..378906a784a8e2722237fbe9da876ebaa70b0883 100755
(executable)
--- 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: