def literal_destringizer(rep):
 if isinstance(rep, (str, unicode)):
  orig_rep = rep
  if (rtp_fix_unicode is not None):
   rep = rtp_fix_unicode(rep)
  try:
   return literal_eval(rep)
  except SyntaxError:
   raise ValueError(('%r is not a valid Python literal' % (orig_rep,)))
 else:
  raise ValueError(('%r is not a string' % (rep,)))

def literal_destringizer ( rep ) : if isinstance ( rep , ( str , unicode ) ) : orig_rep = rep if ( rtp_fix_unicode is not None ) : rep = rtp_fix_unicode ( rep ) try : return literal_eval ( rep ) except SyntaxError : raise ValueError ( ( '%r is not a valid Python literal' % ( orig_rep , ) ) ) else : raise ValueError ( ( '%r is not a string' % ( rep , ) ) )
convert a python literal to the value it represents .