From 121f4720a6244e5ad160102b8682d5e74522b30a Mon Sep 17 00:00:00 2001 From: mpa Date: Tue, 22 Nov 2016 15:37:01 +0300 Subject: [PATCH] add prefix "global" for method variable --- src/KERNEL_PY/kernel/studyedit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/KERNEL_PY/kernel/studyedit.py b/src/KERNEL_PY/kernel/studyedit.py index 499a18392..be1941020 100644 --- a/src/KERNEL_PY/kernel/studyedit.py +++ b/src/KERNEL_PY/kernel/studyedit.py @@ -51,6 +51,7 @@ def getStudyEditor(): """ Return a :class:`StudyEditor` instance to edit the study. """ + global _editor if _editor is None: _editor = StudyEditor() return _editor -- 2.39.2