From 41a46a88d2ca1aae1d6e5857e3f91f8e2fbde8a2 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Wed, 30 Jan 2019 23:07:04 -0800 Subject: [PATCH] Remove invokelatest from IJulia.limitstringmime --- src/IJulia.jl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/IJulia.jl b/src/IJulia.jl index 8f928c9..75ec946 100644 --- a/src/IJulia.jl +++ b/src/IJulia.jl @@ -56,16 +56,14 @@ function limitstringmime(mime::MIME, x) if israwtext(mime, x) return String(x) else - # show(IOContext(buf, :limit=>true, :color=>true), mime, x) - Base.invokelatest(show, IOContext(buf, :limit=>true, :color=>true), mime, x) + show(IOContext(buf, :limit=>true, :color=>true), mime, x) end else b64 = Base64EncodePipe(buf) if isa(x, Vector{UInt8}) write(b64, x) # x assumed to be raw binary data else - # show(IOContext(b64, :limit=>true, :color=>true), mime, x) - Base.invokelatest(show, IOContext(b64, :limit=>true, :color=>true), mime, x) + show(IOContext(b64, :limit=>true, :color=>true), mime, x) end close(b64) end