Skip to content

Commit 813db7b

Browse files
committed
drop 0.5 support, don't set global const in init
1 parent 2c21a76 commit 813db7b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
julia 0.5
1+
julia 0.6
22
PyCall 1.6.2
33
Colors
44
LaTeXStrings

src/init.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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).
167167
function __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

Comments
 (0)