aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/compat.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-11-26 11:48:09 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-11-26 11:48:09 +0100
commitb061ea6e9f49ef2f80e8dac6413088b1b83cc92d (patch)
tree03d96ce667a6464ee6a6fed852a1e7e36482d12f /youtube_dl/compat.py
parent4aae94f9d080980212856e220d254a27140af0a7 (diff)
[compat] Beautify assertion
Diffstat (limited to 'youtube_dl/compat.py')
-rw-r--r--youtube_dl/compat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py
index 2983501ae..27596687d 100644
--- a/youtube_dl/compat.py
+++ b/youtube_dl/compat.py
@@ -270,7 +270,7 @@ if sys.version_info < (3, 0):
print(s.encode(preferredencoding(), 'xmlcharrefreplace'))
else:
def compat_print(s):
- assert type(s) == type(u'')
+ assert isinstance(s, compat_str)
print(s)