Remove superfluous encodings
[youtube-dl] / youtube_dl / utils.py
index 9db7b9d9dcbfdd5d105ab5d6739dec2d9f52a5af..0aa350e648d154f9356d81b76a583deeb7ca4623 100644 (file)
@@ -87,6 +87,7 @@ if sys.version_info < (3,0):
                print(s.encode(preferredencoding(), 'xmlcharrefreplace'))
 else:
        def compat_print(s):
+               assert type(s) == type(u'')
                print(s)
 
 def htmlentity_transform(matchobj):