Skip to content

Commit 6bd991c

Browse files
cleanup
1 parent 0417bb9 commit 6bd991c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/MLDatasets.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ using DelimitedFiles: readdlm
77
using FixedPointNumbers, ColorTypes
88
using PyCall
99

10+
# Julia 1.0 compatibility
11+
if !isdefined(Base, :isnothing)
12+
isnothing(x) = x === nothing
13+
end
14+
1015
bytes_to_type(::Type{UInt8}, A::Array{UInt8}) = A
1116
bytes_to_type(::Type{N0f8}, A::Array{UInt8}) = reinterpret(N0f8, A)
1217
bytes_to_type(::Type{T}, A::Array{UInt8}) where T<:Integer = convert(Array{T}, A)
@@ -55,11 +60,6 @@ include("planetoid.jl")
5560
include("CiteSeer/CiteSeer.jl")
5661
include("TUDataset/TUDataset.jl")
5762

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

0 commit comments

Comments
 (0)