def from_rep(u):
        """Given a string, return a UUID object."""
        if isinstance(u, pyversion.string_types):
            return uuid.UUID(u)

        # hack to remove signs
        a = ctypes.c_ulong(u[0])
        b = ctypes.c_ulong(u[1])
        combined = a.value << 64 | b.value
        return uuid.UUID(int=combined)
def from_rep ( u ) : if isinstance ( u , pyversion . string_types ) : return uuid . UUID ( u ) a = ctypes . c_ulong ( u [ 0 ] ) b = ctypes . c_ulong ( u [ 1 ] ) combined = a . value << 64 | b . value return uuid . UUID ( int = combined )
Given a string, return a UUID object.