diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-11-26 11:48:09 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-11-26 11:48:09 +0100 |
commit | b061ea6e9f49ef2f80e8dac6413088b1b83cc92d (patch) | |
tree | 03d96ce667a6464ee6a6fed852a1e7e36482d12f /youtube_dl | |
parent | 4aae94f9d080980212856e220d254a27140af0a7 (diff) |
[compat] Beautify assertion
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/compat.py | 2 |
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) |