"""Returns a string representation for debugging."""
class_name = self.__class__.__name__
return "{cls}({text})".format(cls=class_name,
text=repr(self._strkey()))
def __str__(self):
"""Returns a string representation used in print statements
After Change
def __repr__(self):
"""Returns a string representation for debugging."""
class_name = self.__class__.__name__
text = self.__unicode__().encode("utf-8") if PY2 else str(self)
ret = "{cls}("{text}")".format(cls=class_name,
text=text)
return binary_type(ret) if PY2 else ret