def arch_to_personality(arch): """ Determine the process personality corresponding to the architecture """ if isinstance(arch, bytes): arch = str(arch, 'utf-8') return _lxc.arch_to_personality(arch)