mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-27 06:10:38 +01:00
[compat] Beautify assertion
This commit is contained in:
parent
4aae94f9d0
commit
b061ea6e9f
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user