projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7806030
)
Fix execution under Python 3
author
Philipp Hagemeister
<phihag@phihag.de>
Mon, 16 Dec 2013 13:44:17 +0000
(14:44 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Mon, 16 Dec 2013 13:44:17 +0000
(14:44 +0100)
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index f3ad47422445de82cc34c024359ad743bb9ece97..dbfac0f43ed282142ec2dda68ddf4b3ce85bd12c 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-1066,13
+1066,14
@@
def fix_xml_all_ampersand(xml_str):
def setproctitle(title):
+ assert isinstance(title, type(u''))
try:
libc = ctypes.cdll.LoadLibrary("libc.so.6")
except OSError:
return
title = title
buf = ctypes.create_string_buffer(len(title) + 1)
- buf.value = title
+ buf.value = title
.encode('utf-8')
try:
libc.prctl(15, ctypes.byref(buf), 0, 0, 0)
except AttributeError: