3
3
# ##########################################################################
4
4
5
5
# global PyObject constants that get initialized at runtime. We
6
- # initialize them here (rather than via "global const foo = ..." in __init__)
6
+ # initialize them here (rather than via "global foo = ..." in __init__)
7
7
# so that their type is known at compile-time.
8
8
9
9
# remove this once we tag and require a newer PyCall version:
@@ -165,10 +165,10 @@ end
165
165
# initialization -- anything that depends on Python has to go here,
166
166
# so that it occurs at runtime (while the rest of PyPlot can be precompiled).
167
167
function __init__ ()
168
- global const isjulia_display = Bool[isdisplayok ()]
168
+ global isjulia_display = Bool[isdisplayok ()]
169
169
copy! (matplotlib, pyimport_conda (" matplotlib" , " matplotlib" ))
170
170
mvers = matplotlib[:__version__ ]
171
- global const version = try
171
+ global version = try
172
172
convert (VersionNumber, mvers)
173
173
catch
174
174
parts = split (mvers,' .' )
@@ -186,8 +186,8 @@ function __init__()
186
186
187
187
backend_gui = find_backend (matplotlib)
188
188
# workaround JuliaLang/julia#8925
189
- global const backend = backend_gui[1 ]
190
- global const gui = backend_gui[2 ]
189
+ global backend = backend_gui[1 ]
190
+ global gui = backend_gui[2 ]
191
191
192
192
copy! (plt, pyimport (" matplotlib.pyplot" )) # raw Python module
193
193
0 commit comments