From 1bad860a4430bc4c78c24d47832c66d7f16e482f Mon Sep 17 00:00:00 2001 From: Alexander Barth Date: Sun, 12 Jan 2020 20:55:24 +0100 Subject: [PATCH] drop Compat #60 --- Project.toml | 2 -- src/NCDatasets.jl | 2 -- src/ncgen.jl | 2 +- test/runtests.jl | 1 - test/test_diskless.jl | 1 - test/test_lowlevel.jl | 1 - test/test_writevar.jl | 2 -- 7 files changed, 1 insertion(+), 10 deletions(-) diff --git a/Project.toml b/Project.toml index 3b0fb1f6..66d5d5ea 100644 --- a/Project.toml +++ b/Project.toml @@ -8,7 +8,6 @@ version = "0.9.6" [deps] BinDeps = "9e28174c-4ba2-5203-b857-d8d62c4213ee" CFTime = "179af706-886a-5703-950a-314cd64e0468" -Compat = "34da2185-b29b-5c13-b0c7-acf172513d20" CondaBinDeps = "a9693cdc-2bc8-5703-a9cd-1da358117377" DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8" Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" @@ -19,7 +18,6 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" [compat] BinDeps = "0.8, 1" CFTime = "0.0.3, 0.1, 1" -Compat = "2" CondaBinDeps = "0.1" DataStructures = "0.17" julia = "0.7, 1" diff --git a/src/NCDatasets.jl b/src/NCDatasets.jl index 1840765e..53966fdc 100644 --- a/src/NCDatasets.jl +++ b/src/NCDatasets.jl @@ -20,10 +20,8 @@ using Dates using Printf using Base -using Compat using DataStructures: OrderedDict import Base.convert -import Compat: @debug, findfirst import Base: close import Base: Array diff --git a/src/ncgen.jl b/src/ncgen.jl index 1a2f2c7e..1e920adf 100644 --- a/src/ncgen.jl +++ b/src/ncgen.jl @@ -58,7 +58,7 @@ as the NetCDF file `fname`. The code is placed in the file `jlname` or printed to the standard output. By default the new NetCDF file is called `filename.nc`. This can be changed with the optional parameter `newfname`. """ -ncgen(fname; kwargs...) = ncgen(Compat.stdout,fname; kwargs...) +ncgen(fname; kwargs...) = ncgen(stdout,fname; kwargs...) function ncgen(fname,jlname; kwargs...) open(jlname,"w") do io diff --git a/test/runtests.jl b/test/runtests.jl index ce62aa4f..1601408d 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -3,7 +3,6 @@ using Test using Dates using Printf using Random -using Compat println("NetCDF library: ",NCDatasets.libnetcdf) println("NetCDF version: ",NCDatasets.nc_inq_libvers()) diff --git a/test/test_diskless.jl b/test/test_diskless.jl index c0634405..65017736 100644 --- a/test/test_diskless.jl +++ b/test/test_diskless.jl @@ -2,7 +2,6 @@ using NCDatasets using Test using Dates using Printf -using Compat using BenchmarkTools sz = (400,400) diff --git a/test/test_lowlevel.jl b/test/test_lowlevel.jl index 8b8c320e..a73ee020 100644 --- a/test/test_lowlevel.jl +++ b/test/test_lowlevel.jl @@ -1,5 +1,4 @@ using Random -using Compat import NCDatasets varname = "varname" diff --git a/test/test_writevar.jl b/test/test_writevar.jl index e95e541d..99cb88e4 100644 --- a/test/test_writevar.jl +++ b/test/test_writevar.jl @@ -3,8 +3,6 @@ using Test using Dates using Printf -using Compat - sz = (4,5) filename = tempname() # The mode "c" stands for creating a new file (clobber)