projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07e378f
)
Fix UnicodeEncodeError with --write-info-json on Python 2.7 + Windows
author
Ivan Kozik
<ivan@ludios.org>
Thu, 20 Nov 2014 06:04:04 +0000
(06:04 +0000)
committer
Ivan Kozik
<ivan@ludios.org>
Thu, 20 Nov 2014 06:26:34 +0000
(06:26 +0000)
Fixes #4244
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index 94b496dd0a693ae61997881458e1e202a184a330..f339fcb3134c3635cc265e03793fe7f544161c2a 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-74,7
+74,7
@@
def write_json_file(obj, fn):
""" Encode obj as JSON and write it to fn, atomically """
fn = encodeFilename(fn)
- if sys.version_info < (3, 0):
+ if sys.version_info < (3, 0)
and sys.platform != 'win32'
:
encoding = get_filesystem_encoding()
# os.path.basename returns a bytes object, but NamedTemporaryFile
# will fail if the filename contains non ascii characters unless we