EncodingWarning when PYTHONWARNDEFAULTENCODING=1
Bug #2029023 reported by
Jason R. Coombs
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MockProc |
New
|
Undecided
|
Unassigned |
Bug Description
When PYTHONWARNDEFAU
```
/Users/
fh = open( filename, 'w' )
```
To post a comment you must log in.
Probably the best solution is to pass `encoding='utf-8'` to that call to `open`.