mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
A module creation with `imp` was deprecated, so we replaced it with `importlib` function (PY-30940), which requires ModuleSpec definition. Surprisingly, sometimes it can break web frameworks (like Flask), so we should properly copy such attributes from the original module and set them for newly created module. (cherry picked from commit d295961a47d67c055a917f32eb42a4322259e13f) IJ-CR-12653 GitOrigin-RevId: f07e1fb59c2c2ef1e0790fe6acd78e376f0a0fa2