Skip to content

Commit 0417bb9

Browse files
julia 1.0 compatibility
1 parent 7bbfa4e commit 0417bb9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/MLDatasets.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module MLDatasets
22

3+
using FixedPointNumbers: length
4+
using ColorTypes: length
35
using Requires
46
using DelimitedFiles: readdlm
57
using FixedPointNumbers, ColorTypes
@@ -53,6 +55,11 @@ include("planetoid.jl")
5355
include("CiteSeer/CiteSeer.jl")
5456
include("TUDataset/TUDataset.jl")
5557

58+
# Julia 1.0 compatibility
59+
if !isdefined(Base, :isnothing)
60+
isnothing(x) = x === nothing
61+
end
62+
5663
function __init__()
5764
# initialize optional dependencies
5865
@require ImageCore="a09fc81d-aa75-5fe9-8630-4744c3626534" begin

0 commit comments

Comments
 (0)