This is an archive of the discontinued Mercurial Phabricator instance.

pyoxidizer: don't expect `fp.name` to exist on object from `resources`
AbandonedPublic

Authored by martinvonz on Dec 18 2019, 5:30 PM.

Details

Reviewers
indygreg
Group Reviewers
hg-reviewers
Summary

importlib.resources.open_resource() in pyoxidizer returns a
_io.BytesIO, which does not have a name attribute.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

martinvonz created this revision.Dec 18 2019, 5:30 PM
indygreg accepted this revision.Dec 18 2019, 9:05 PM
indygreg added a subscriber: indygreg.

Yay - more undefined behavior regarding the importlib.resources interface!

This revision is now accepted and ready to land.Dec 18 2019, 9:05 PM
martinvonz abandoned this revision.Dec 19 2019, 12:42 AM

What this was fixing was not yet accepted -- it's in D7629. I've reordered the patches now and this on is no longer needed.