mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-07-02 12:02:49 -05:00
Use character instead of byte strings
This commit is contained in:
@ -180,7 +180,8 @@ class FileDownloader(object):
|
||||
|
||||
def to_stderr(self, message):
|
||||
"""Print message to stderr."""
|
||||
print >>sys.stderr, message.encode(preferredencoding())
|
||||
assert type(message) == type(u'')
|
||||
sys.stderr.write((message + u'\n').encode(preferredencoding()))
|
||||
|
||||
def to_cons_title(self, message):
|
||||
"""Set console/terminal window title to message."""
|
||||
|
Reference in New Issue
Block a user