Skip to content

Commit

Permalink
Fix deprecation warning in show (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDunnNZ authored Feb 27, 2020
1 parent 677bdba commit be25ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PyCall.jl
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ for (mime, method) in ((MIME"text/html", "_repr_html_"),
@eval begin
function show(io::IO, mime::$mime, o::PyObject)
if !ispynull(o) && hasproperty(o, $method)
r = pycall(o[$method], PyObject)
r = pycall(o.$method, PyObject)
!(r pynothing[]) && return write(io, convert($T, r))
end
throw(MethodError(show, (io, mime, o)))
Expand Down

0 comments on commit be25ca6

Please sign in to comment.