summaryrefslogtreecommitdiff
path: root/grc/core
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2017-08-03 15:02:52 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2017-08-03 15:02:52 -0700
commitd915fb95035c82257f6c230797fed8b3f69bc4b6 (patch)
tree72a2d679438ad05f0354cb08feb0211a6ca2b543 /grc/core
parent41e1a272e6794feb4d58fed9807d409bd1930c01 (diff)
parent621de662daf642974c1a4439623a2c1a4230bd89 (diff)
Merge remote-tracking branch 'github/pr/1401' into python3
Diffstat (limited to 'grc/core')
-rw-r--r--grc/core/generator/top_block.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/core/generator/top_block.py b/grc/core/generator/top_block.py
index e4fed838ae..0b18bc837c 100644
--- a/grc/core/generator/top_block.py
+++ b/grc/core/generator/top_block.py
@@ -203,13 +203,13 @@ class TopBlockGenerator(object):
callbacks_all.extend(expr_utils.expr_replace(cb, replace_dict) for cb in block.get_callbacks())
# Map var id to callbacks
- def uses_var_id():
+ def uses_var_id(callback):
used = expr_utils.get_variable_dependencies(callback, [var_id])
return used and 'self.' + var_id in callback # callback might contain var_id itself
callbacks = {}
for var_id in var_ids:
- callbacks[var_id] = [callback for callback in callbacks_all if uses_var_id()]
+ callbacks[var_id] = [callback for callback in callbacks_all if uses_var_id(callback)]
return callbacks