def remove_hex(string):
    """Remove any hex number from string.

    This is used to remove hex numbers from the string.
    Those usually represent the address of an object in
    memory and when present make it difficult to compare
    error messages from two different objects.
    """
    hex_addresses = findall(HEX_PATTERN, string)

    for address in hex_addresses:
        string = string.replace(address, "")

    return string
Remove any hex number from string.

    This is used to remove hex numbers from the string.
    Those usually represent the address of an object in
    memory and when present make it difficult to compare
    error messages from two different objects.
    
nodezator/rectsman/doctests/fixtures.py