Fix the REPL printing the representation of the representation of an object
@@ -110,9 +110,9 @@ def displayhook(_value):
json = dumps(val, default=default)
try:
- PyOutputHelper.printValue(repr(_value)+"\n", value=json, script=threading.current_thread().script_path)
+ PyOutputHelper.printValue(_repr+"\n", value=json, script=threading.current_thread().script_path)
except AttributeError:
- PyOutputHelper.printValue(repr(_value)+"\n", value=json, script=None)
+ PyOutputHelper.printValue(_repr+"\n", value=json, script=None)
def excepthook(exc, value, tb, limit=None):
