aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/PySide2/support/signature/mapping.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2/PySide2/support/signature/mapping.py')
-rw-r--r--sources/pyside2/PySide2/support/signature/mapping.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/pyside2/PySide2/support/signature/mapping.py b/sources/pyside2/PySide2/support/signature/mapping.py
index c9a028dd..a03abc08 100644
--- a/sources/pyside2/PySide2/support/signature/mapping.py
+++ b/sources/pyside2/PySide2/support/signature/mapping.py
@@ -109,13 +109,13 @@ class Reloader(object):
if self.sys_module_count == len(sys.modules):
return
self.sys_module_count = len(sys.modules)
+ g = globals()
for mod_name in self.uninitialized[:]:
if "PySide2." + mod_name in sys.modules:
self.uninitialized.remove(mod_name)
proc_name = "init_" + mod_name
- if proc_name in globals():
- init_proc = globals()[proc_name]
- globals().update(init_proc())
+ if proc_name in g:
+ g.update(g[proc_name]())
update_mapping = Reloader().update
type_map = {}