@@ -36,7 +36,7 @@ function Base.show(io::IO, ::MIME"text/plain", h::LazyHelp)
3636 for k in h. keys
3737 o = pygetattr (o, k)
3838 end
39- if hasproperty (o, : __doc__ )
39+ if pyhasattr (o, " __doc__" )
4040 print (io, pyconvert (String, o. __doc__))
4141 else
4242 print (io, " no Python docstring found for " , o)
@@ -76,7 +76,7 @@ Base.getproperty(f::Figure, s::Symbol) = getproperty(Py(f), s)
7676Base. getproperty (f:: Figure , s:: AbstractString ) = getproperty (f, Symbol (s))
7777Base. setproperty! (f:: Figure , s:: Symbol , x) = setproperty! (Py (f), s, x)
7878Base. setproperty! (f:: Figure , s:: AbstractString , x) = setproperty! (f, Symbol (s), x)
79- Base. hasproperty (f:: Figure , s:: Symbol ) = hasproperty (Py (f), s)
79+ Base. hasproperty (f:: Figure , s:: Symbol ) = pyhasattr (Py (f), s)
8080Base. propertynames (f:: Figure ) = propertynames (Py (f))
8181
8282for (mime,fmt) in aggformats
@@ -175,10 +175,10 @@ const plt_funcs = (:acorr,:annotate,:arrow,:autoscale,:autumn,:axes,:axhline,:ax
175175for f in plt_funcs
176176 sf = string (f)
177177 @eval @doc LazyHelp (pyplot,$ sf) function $f (args... ; kws... )
178- if ! hasproperty (pyplot, $ ( QuoteNode (f)) )
178+ if ! pyhasattr (pyplot, $ sf )
179179 error (" matplotlib " , version, " does not have pyplot." , $ sf)
180180 end
181- return pycall (pyplot.$ f , args... ; kws... )
181+ return pycall (pyplot.$ sf , args... ; kws... )
182182 end
183183end
184184
0 commit comments