mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Merge from 3.5
This commit is contained in:
commit
da037616b1
2 changed files with 14 additions and 4 deletions
|
@ -241,7 +241,7 @@ class _LazyModule(types.ModuleType):
|
|||
if id(self) != id(sys.modules[original_name]):
|
||||
msg = ('module object for {!r} substituted in sys.modules '
|
||||
'during a lazy load')
|
||||
raise ValueError(msg.format(original_name))
|
||||
raise ValueError(msg.format(original_name))
|
||||
# Update after loading since that's what would happen in an eager
|
||||
# loading situation.
|
||||
self.__dict__.update(attrs_updated)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue