summaryrefslogtreecommitdiff
path: root/grc/core/blocks/embedded_python.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/core/blocks/embedded_python.py')
-rw-r--r--grc/core/blocks/embedded_python.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/grc/core/blocks/embedded_python.py b/grc/core/blocks/embedded_python.py
index f7bd2b39b6..9ade525c0b 100644
--- a/grc/core/blocks/embedded_python.py
+++ b/grc/core/blocks/embedded_python.py
@@ -10,6 +10,7 @@ from textwrap import dedent
from . import Block, register_build_in
from ._templates import MakoTemplates
+from ._flags import Flags
from .. import utils
from ..base import Element
@@ -218,15 +219,14 @@ class EPyModule(Block):
to set parameters of other blocks in your flowgraph.
""")}
- epy_flags = Block.flags
- epy_flags.set(epy_flags.SHOW_ID)
+ flags = Flags(Flags.SHOW_ID)
parameters_data = build_params(
params_raw=[
dict(label='Code', id='source_code', dtype='_multiline_python_external',
default='# this module will be imported in the into your flowgraph',
hide='part')
- ], have_inputs=False, have_outputs=False, flags=epy_flags, block_id=key
+ ], have_inputs=False, have_outputs=False, flags=flags, block_id=key
)
templates = MakoTemplates(