@@ -36,7 +36,7 @@ function Base.show(io::IO, ::MIME"text/plain", h::LazyHelp)
36
36
for k in h. keys
37
37
o = pygetattr (o, k)
38
38
end
39
- if hasproperty (o, : __doc__ )
39
+ if pyhasattr (o, " __doc__" )
40
40
print (io, pyconvert (String, o. __doc__))
41
41
else
42
42
print (io, " no Python docstring found for " , o)
@@ -76,7 +76,7 @@ Base.getproperty(f::Figure, s::Symbol) = getproperty(Py(f), s)
76
76
Base. getproperty (f:: Figure , s:: AbstractString ) = getproperty (f, Symbol (s))
77
77
Base. setproperty! (f:: Figure , s:: Symbol , x) = setproperty! (Py (f), s, x)
78
78
Base. 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)
80
80
Base. propertynames (f:: Figure ) = propertynames (Py (f))
81
81
82
82
for (mime,fmt) in aggformats
@@ -175,10 +175,10 @@ const plt_funcs = (:acorr,:annotate,:arrow,:autoscale,:autumn,:axes,:axhline,:ax
175
175
for f in plt_funcs
176
176
sf = string (f)
177
177
@eval @doc LazyHelp (pyplot,$ sf) function $f (args... ; kws... )
178
- if ! hasproperty (pyplot, $ ( QuoteNode (f)) )
178
+ if ! pyhasattr (pyplot, $ sf )
179
179
error (" matplotlib " , version, " does not have pyplot." , $ sf)
180
180
end
181
- return pycall (pyplot.$ f , args... ; kws... )
181
+ return pycall (pyplot.$ sf , args... ; kws... )
182
182
end
183
183
end
184
184
0 commit comments