Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2513)

Unified Diff: Lib/packaging/tests/support.py

Issue 12112: The new packaging module should not use the locale encoding
Patch Set: Created 2 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/packaging/metadata.py ('k') | Lib/packaging/tests/test_create.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/packaging/tests/support.py
+++ b/Lib/packaging/tests/support.py
@@ -146,7 +146,7 @@ class TempdirManager:
"""
if isinstance(path, (list, tuple)):
path = os.path.join(*path)
- f = open(path, 'w')
+ f = open(path, 'w', encoding='utf8')
try:
f.write(content)
finally:
« no previous file with comments | « Lib/packaging/metadata.py ('k') | Lib/packaging/tests/test_create.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld cbc36f91f3f7