mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-15 01:15:06 +00:00
[compat] Beautify assertion
This commit is contained in:
parent
4aae94f9d0
commit
b061ea6e9f
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ def compat_print(s):
|
||||||
print(s.encode(preferredencoding(), 'xmlcharrefreplace'))
|
print(s.encode(preferredencoding(), 'xmlcharrefreplace'))
|
||||||
else:
|
else:
|
||||||
def compat_print(s):
|
def compat_print(s):
|
||||||
assert type(s) == type(u'')
|
assert isinstance(s, compat_str)
|
||||||
print(s)
|
print(s)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue