From: Philipp Hagemeister Date: Wed, 26 Nov 2014 10:48:09 +0000 (+0100) Subject: [compat] Beautify assertion X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=b061ea6e9f49ef2f80e8dac6413088b1b83cc92d;p=youtube-dl [compat] Beautify assertion --- 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)