aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2017-09-25 11:43:48 +0200
committerChristian Tismer <tismer@stackless.com>2017-09-29 06:56:03 +0000
commit828c94347125180468838c77b554e0526cd34aa5 (patch)
tree655942f804dad780adce1e32e89434837c580cf5
parent67ac7e473e312298eeb2deb16f2a50644b5f76e7 (diff)
Signature: tiny refinement in Reloader
This is totally irrelevant and a tiny optimization that is really not needed. Do what you want. Task-number: PYSIDE-510 Change-Id: I5d6d2f5f94130d4b03b4d70525b35139e82b9f5e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-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 869e9e71..668ca8df 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 = {}