aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo.valsorda@gmail.com>2013-03-28 05:11:51 -0700
committerFilippo Valsorda <filippo.valsorda@gmail.com>2013-03-28 05:11:51 -0700
commit59b4a2f0e4ec12f4f2fa8e275d7d1469faaeb52e (patch)
tree544d95481e6f2c0a081bb3dd28a884f9fa8f4f90 /youtube_dl
parentf10b2a9c14db686e7f9b7d050f41b26d5cc35e01 (diff)
parent1ee97784052d9f57ec618164a2a4c502186d93b2 (diff)
Merge pull request #762 from jynnantonix/master
Use sys.stdout.buffer when writing to standard out
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 95bd94843..901b5b5ad 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -329,7 +329,7 @@ def sanitize_open(filename, open_mode):
if sys.platform == 'win32':
import msvcrt
msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
- return (sys.stdout, filename)
+ return (sys.stdout.buffer, filename)
stream = open(encodeFilename(filename), open_mode)
return (stream, filename)
except (IOError, OSError) as err: