Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e219d3 commit dbe666dCopy full SHA for dbe666d
1 file changed
Lib/test/test_netrc.py
@@ -11,7 +11,7 @@ def make_nrc(self, test_data):
11
if sys.platform != 'cygwin':
12
mode += 't'
13
temp_fd, temp_filename = tempfile.mkstemp()
14
- with os.fdopen(temp_fd, mode=mode) as fp:
+ with os.fdopen(temp_fd, mode=mode, encoding="utf-8") as fp:
15
fp.write(test_data)
16
self.addCleanup(os.unlink, temp_filename)
17
return netrc.netrc(temp_filename)
0 commit comments