Skip to content

Commit 75b8411

Browse files
committed
Mark Compat.Dates from #413 for deprecation
1 parent b50924b commit 75b8411

File tree

4 files changed

+9
-18
lines changed

4 files changed

+9
-18
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ Currently, the `@compat` macro supports the following syntaxes:
5555
* `using Compat.Base64` is provided on versions older than 0.7, where this library is not
5656
yet a part of the standard library. ([#24361])
5757

58-
* `using Compat.Dates` is provided on versions older than 0.7, where this library is not
59-
yet a part of the standard library. ([#24459])
60-
6158
* `using Compat.Unicode` is provided on versions older than 0.7, where this library is not
6259
yet a part of the standard library. ([#25021])
6360

src/Compat.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,11 @@ module Sys
2020
end
2121
import Base.MathConstants
2222
import Test, SharedArrays, Mmap, DelimitedFiles
23+
import Dates
2324

2425

2526
include("compatmacro.jl")
2627

27-
28-
if VERSION < v"0.7.0-DEV.2575"
29-
const Dates = Base.Dates
30-
else
31-
import Dates
32-
end
33-
3428
if VERSION < v"0.7.0-DEV.3382"
3529
const Libdl = Base.Libdl
3630
else

test/old.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@ module Test23876
8686
@test isdefined(Mmap, :mmap)
8787
end
8888

89+
# 0.7
90+
module Test24459
91+
using Compat
92+
using Compat.Test
93+
using Compat.Dates
94+
@test isdefined(@__MODULE__, :Dates)
95+
end
96+
8997

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

test/runtests.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,6 @@ if VERSION < v"0.7.0-DEV.880"
7272
end
7373
end
7474

75-
# 0.7
76-
module Test24459
77-
using Compat
78-
using Compat.Test
79-
using Compat.Dates
80-
@test isdefined(@__MODULE__, :Dates)
81-
end
82-
8375
# 0.7
8476
module Test25056
8577
using Compat

0 commit comments

Comments
 (0)