forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove many stdlib deprecations (JuliaLang#28450)
* Remove Dates deprecations. * Remove Base64 deprecations. * Remove CRC32c deprecations. * Remove DelimitedFiles deprecations. * Remove FileWatching deprecations. * Remove InteractiveUtils deprecations. * Remove Libdl deprecations. * Remove Markdown deprecations. * Remove Mmap deprecations. * Remove Printf deprecations. * Remove Profile deprecations. * Remove REPL deprecations. * Remove Serialization deprecations. * Remove SharedArrays deprecations. * Remove Sockets deprecations. * Remove Statistics deprecations.
- Loading branch information
1 parent
f7d9a8b
commit cae40f2
Showing
9 changed files
with
2 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,3 @@ | ||
# This file is a part of Julia. License is MIT: https://julialang.org/license | ||
|
||
# 0.7 deprecations | ||
|
||
import Base.(:) | ||
import Base.range | ||
|
||
# deprecate remaining vectorized methods from Dates | ||
@deprecate( | ||
DateTime(Y::AbstractArray{<:AbstractString}, f::AbstractString; locale::Locale=ENGLISH), | ||
DateTime.(Y, f; locale=locale) ) | ||
@deprecate( | ||
DateTime(Y::AbstractArray{<:AbstractString}, df::DateFormat=ISODateTimeFormat), | ||
DateTime.(Y, df) ) | ||
@deprecate( | ||
Date(Y::AbstractArray{<:AbstractString}, f::AbstractString; locale::Locale=ENGLISH), | ||
Date.(Y, f; locale=locale) ) | ||
@deprecate( | ||
Date(Y::AbstractArray{<:AbstractString}, df::DateFormat=ISODateFormat), | ||
Date.(Y, df) ) | ||
@deprecate( | ||
format(Y::AbstractArray{<:TimeType}, f::AbstractString; locale::Locale=ENGLISH), | ||
format.(Y, f; locale=locale), | ||
false ) | ||
@deprecate( | ||
format(Y::AbstractArray{T}, df::DateFormat=default_format(T)) where {T<:TimeType}, | ||
format.(Y, df), | ||
false ) | ||
|
||
@deprecate +(a::GeneralPeriod, b::StridedArray{<:GeneralPeriod}) broadcast(+, a, b) false | ||
@deprecate +(a::StridedArray{<:GeneralPeriod}, b::GeneralPeriod) broadcast(+, a, b) false | ||
@deprecate -(a::GeneralPeriod, b::StridedArray{<:GeneralPeriod}) broadcast(-, a, b) false | ||
@deprecate -(a::StridedArray{<:GeneralPeriod}, b::GeneralPeriod) broadcast(-, a, b) false | ||
|
||
# #24258 | ||
# Physical units define an equivalence class: there is no such thing as a step of "1" (is | ||
# it one day or one second or one nanosecond?). So require the user to specify the step | ||
# (in physical units). | ||
@deprecate (:)(start::T, stop::T) where {T<:DateTime} start:Day(1):stop false | ||
@deprecate (:)(start::T, stop::T) where {T<:Date} start:Day(1):stop false | ||
@deprecate (:)(start::T, stop::T) where {T<:Time} start:Second(1):stop false | ||
|
||
@deprecate range(start::DateTime, len::Integer) range(start, step=Day(1), length=len) false | ||
@deprecate range(start::Date, len::Integer) range(start, step=Day(1), length=len) false | ||
|
||
# PR #23724 | ||
@deprecate DateTime() DateTime(1) | ||
@deprecate Date() Date(1) | ||
@deprecate Time() Time(0) | ||
# 1.0 deprecations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters