switch source package format to 3.0 quilt
[debian/gnuradio] / grc / base / Block.py
index 203e878e400650105806d155ec243483c3cacd4c..42eb6b3fbcfb23368bbf9417977eda07df2667f0 100644 (file)
@@ -19,8 +19,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
 
 from . import odict
 from Element import Element
-from Param import Param
-from Port import Port
 
 from Cheetah.Template import Template
 from UserDict import UserDict
@@ -239,7 +237,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')