Browse Source

[compat] Beautify assertion

totalwebcasting
Philipp Hagemeister 10 years ago
parent
commit
b061ea6e9f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/compat.py

+ 1
- 1
youtube_dl/compat.py View File

@ -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…
Cancel
Save