From b061ea6e9f49ef2f80e8dac6413088b1b83cc92d Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Wed, 26 Nov 2014 11:48:09 +0100 Subject: [PATCH] [compat] Beautify assertion --- youtube_dl/compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ def compat_print(s): print(s.encode(preferredencoding(), 'xmlcharrefreplace')) else: def compat_print(s): - assert type(s) == type(u'') + assert isinstance(s, compat_str) print(s)