aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2012-11-28 00:53:09 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2012-11-28 00:53:09 +0100
commite6137fd61d47ba8624e9baa84701adf929e38849 (patch)
treee95125f9220402a8eaa41ba842130c684caaf9d1 /youtube_dl/utils.py
parent8cd10ac4efb5168f3ceb18ec94338bce73e166a7 (diff)
Remove superfluous encodings
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 9db7b9d9d..0aa350e64 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -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):