@staticmethod
    def port_spec_signature(ps, constant_hasher_map={}):
        hasher = sha_hash()
        u = hasher.update
        u(ps.type)
        u(ps.name)
        u(ps.sigstring)
        u('%d' % ps.depth)
        return hasher.digest()
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/core/cache/hasher.py/Hasher.port_spec_signature/original