33# ##########################################################################
44
55# 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__)
77# so that their type is known at compile-time.
88
99# remove this once we tag and require a newer PyCall version:
@@ -165,10 +165,10 @@ end
165165# initialization -- anything that depends on Python has to go here,
166166# so that it occurs at runtime (while the rest of PyPlot can be precompiled).
167167function __init__ ()
168- global const isjulia_display = Bool[isdisplayok ()]
168+ global isjulia_display = Bool[isdisplayok ()]
169169 copy! (matplotlib, pyimport_conda (" matplotlib" , " matplotlib" ))
170170 mvers = matplotlib[:__version__ ]
171- global const version = try
171+ global version = try
172172 convert (VersionNumber, mvers)
173173 catch
174174 parts = split (mvers,' .' )
@@ -186,8 +186,8 @@ function __init__()
186186
187187 backend_gui = find_backend (matplotlib)
188188 # 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 ]
191191
192192 copy! (plt, pyimport (" matplotlib.pyplot" )) # raw Python module
193193
0 commit comments