Skip to content

Commit

Permalink
Mark Compat.Dates from #413 for deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters committed Oct 1, 2019
1 parent cc0b678 commit 09b8dd9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 18 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ Currently, the `@compat` macro supports the following syntaxes:
* `using Compat.Base64` is provided on versions older than 0.7, where this library is not
yet a part of the standard library. ([#24361])

* `using Compat.Dates` is provided on versions older than 0.7, where this library is not
yet a part of the standard library. ([#24459])

* `using Compat.Unicode` is provided on versions older than 0.7, where this library is not
yet a part of the standard library. ([#25021])

Expand Down
8 changes: 1 addition & 7 deletions src/Compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,11 @@ module Sys
end
import Base.MathConstants
import Test, SharedArrays, Mmap, DelimitedFiles
import Dates


include("compatmacro.jl")


if VERSION < v"0.7.0-DEV.2575"
const Dates = Base.Dates
else
import Dates
end

if VERSION < v"0.7.0-DEV.3382"
const Libdl = Base.Libdl
else
Expand Down
8 changes: 8 additions & 0 deletions test/old.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ module Test23876
@test isdefined(Mmap, :mmap)
end

# 0.7
module Test24459
using Compat
using Compat.Test
using Compat.Dates
@test isdefined(@__MODULE__, :Dates)
end


# tests of removed functionality (i.e. justs tests Base)

Expand Down
8 changes: 0 additions & 8 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,6 @@ if VERSION < v"0.7.0-DEV.880"
end
end

# 0.7
module Test24459
using Compat
using Compat.Test
using Compat.Dates
@test isdefined(@__MODULE__, :Dates)
end

# 0.7
module Test25056
using Compat
Expand Down

0 comments on commit 09b8dd9

Please sign in to comment.