Use sys.stdout.buffer instead of sys.stdout
authorChirantan Ekbote <chirantan.ekbote@gmail.com>
Wed, 27 Mar 2013 19:57:11 +0000 (15:57 -0400)
committerChirantan Ekbote <chirantan.ekbote@gmail.com>
Wed, 27 Mar 2013 19:57:11 +0000 (15:57 -0400)
commit1ee97784052d9f57ec618164a2a4c502186d93b2
tree544d95481e6f2c0a081bb3dd28a884f9fa8f4f90
parentf10b2a9c14db686e7f9b7d050f41b26d5cc35e01
Use sys.stdout.buffer instead of sys.stdout

sys.stdout defaults to text mode, we need to use the underlying buffer
instead when writing binary data.

Signed-off-by: Chirantan Ekbote <chirantan.ekbote@gmail.com>
youtube_dl/utils.py