diff options
author | Dino Viehland <dinoviehland@gmail.com> | 2020-01-23 00:42:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-23 00:42:38 (GMT) |
commit | 9b6fec46513006d7b06fcb645cca6e4f5bf7c7b8 (patch) | |
tree | d159d657c67c4f4ef7a961a5e73a119644de8d3e /Lib/imghdr.py | |
parent | d3ae95e1e945ed20297e1c38ba43a18b7a868ab6 (diff) | |
download | cpython-9b6fec46513006d7b06fcb645cca6e4f5bf7c7b8.zip cpython-9b6fec46513006d7b06fcb645cca6e4f5bf7c7b8.tar.gz cpython-9b6fec46513006d7b06fcb645cca6e4f5bf7c7b8.tar.bz2 |
bpo-39336: Allow packages to not let their child modules be set on them (#18006)
* bpo-39336: Allow setattr to fail on modules which aren't assignable
When attaching a child module to a package if the object in sys.modules raises an AttributeError (e.g. because it is immutable) it causes the whole import to fail. This now allows immutable packages to exist and an ImportWarning is reported and the AttributeError exception is ignored.
Diffstat (limited to 'Lib/imghdr.py')
0 files changed, 0 insertions, 0 deletions