use io.open() instead of open() for python 2/3 compatibility
Bug #1470551 reported by
Lianhao Lu
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PBR |
Incomplete
|
Undecided
|
Lianhao Lu |
Bug Description
When investigating the failure of http://
We should use io.open(
Changed in pbr: | |
assignee: | nobody → Lianhao Lu (lianhao-lu) |
Changed in pbr: | |
status: | New → In Progress |
To post a comment you must log in.
So this is premature... the built in open, in text mode, uses /docs.python. org/3/library/ locale. html#locale. getpreferredenc oding by default, and AFAIK there isn't a defined encoding for PKG-INFO or METADATA - I've sent a follow up to the distutils thread on this from 2008! and we can go from there to see if there is one.
https:/
If there isn't, erroring on something we can't decode is probably just as fine as anything.