def _process_priv_part(perms):
 _tmp = {}
 previous = None
 for perm in perms:
  if (previous is None):
   _tmp[_PRIVILEGES_MAP[perm]] = False
   previous = _PRIVILEGES_MAP[perm]
  elif (perm == '*'):
   _tmp[previous] = True
  else:
   _tmp[_PRIVILEGES_MAP[perm]] = False
   previous = _PRIVILEGES_MAP[perm]
 return _tmp

def _process_priv_part ( perms ) : _tmp = { } previous = None for perm in perms : if ( previous is None ) : _tmp [ _PRIVILEGES_MAP [ perm ] ] = False previous = _PRIVILEGES_MAP [ perm ] elif ( perm == '*' ) : _tmp [ previous ] = True else : _tmp [ _PRIVILEGES_MAP [ perm ] ] = False previous = _PRIVILEGES_MAP [ perm ] return _tmp
process part .