def string_repr(text, show_quotes=True):
 if (six.PY3 and isinstance(text, six.binary_type)):
  output = repr(text)[1:]
 else:
  output = repr(text)
 if show_quotes:
  return output
 else:
  return output[1:(-1)]

def string_repr ( text , show_quotes = True ) : if ( six . PY3 and isinstance ( text , six . binary_type ) ) : output = repr ( text ) [ 1 : ] else : output = repr ( text ) if show_quotes : return output else : return output [ 1 : ( - 1 ) ]
prints the repr of a string .