def mangle(self, name, x):
        """
        Mangle the name by hashing the I{name} and appending I{x}.
        @return: the mangled name.
        """
        h = hashlib.md5(name.encode('utf8')).hexdigest()
        return '%s-%s' % (h, x)
def mangle ( self , name , x ) : h = hashlib . md5 ( name . encode ( 'utf8' ) ) . hexdigest ( ) return '%s-%s' % ( h , x )
Mangle the name by hashing the I{name} and appending I{x}.
        @return: the mangled name.