summaryrefslogtreecommitdiff
path: root/grc
diff options
context:
space:
mode:
authorJosh Blum2009-09-25 12:54:33 -0700
committerJosh Blum2009-09-25 12:54:33 -0700
commitdcd4b6efd6e0a0130fbdc8f8aa5db1bc182e653f (patch)
tree6873317cf4c59575be516919659f02ba4ffe72d1 /grc
parentfd37328c778ea8014e9ea9d932e61e5d229dd012 (diff)
downloadgnuradio-dcd4b6efd6e0a0130fbdc8f8aa5db1bc182e653f.tar.gz
gnuradio-dcd4b6efd6e0a0130fbdc8f8aa5db1bc182e653f.tar.bz2
gnuradio-dcd4b6efd6e0a0130fbdc8f8aa5db1bc182e653f.zip
hash the tuple of hashes to id the current params
Diffstat (limited to 'grc')
-rw-r--r--grc/base/Block.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/base/Block.py b/grc/base/Block.py
index 203e878e4..b2015cc40 100644
--- a/grc/base/Block.py
+++ b/grc/base/Block.py
@@ -239,7 +239,7 @@ class Block(Element):
that are needed for the connections creation phase.
@param n the nested data odict
"""
- get_hash = lambda: reduce(lambda x, y: x ^ y, [hash(param) for param in self.get_params()], 0)
+ get_hash = lambda: hash(tuple(map(hash, self.get_params())))
my_hash = 0
while get_hash() != my_hash:
params_n = n.findall('param')