[issue38672] mimetypes.init() fails if no access to one of known files

2019-11-24 Thread R. David Murray
R. David Murray added the comment: I haven't looked at this in detail, but here are my general thoughts: I think it would be reasonable to expect that the module would function even if the file permissions are screwed up, similar to how unix commands that try to read .netrc will (try to)

[issue38672] mimetypes.init() fails if no access to one of known files

2019-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: An exception report is a failure to finish but not a crash as meant here. The current code requires all known files and any file explicitly passes to be readable. The proposed simple change would make it OK if none of them are. But is this really OK? Is