diff --git a/src/Registry/registry_instance.jl b/src/Registry/registry_instance.jl index 36b8ce13d2..3825e48b94 100644 --- a/src/Registry/registry_instance.jl +++ b/src/Registry/registry_instance.jl @@ -15,8 +15,7 @@ function to_tar_path_format(file::AbstractString) end # See loading.jl -const TOML_CACHE = let parser = Base.TOML.Parser() - parser.Dates = Dates +const TOML_CACHE = let parser = TOML.Parser() Base.TOMLCache(parser, Dict{String, Dict{String, Any}}()) end const TOML_LOCK = ReentrantLock() @@ -26,9 +25,8 @@ function parsefile(in_memory_registry::Union{Dict, Nothing}, folder::AbstractStr return _parsefile(joinpath(folder, file)) else content = in_memory_registry[to_tar_path_format(file)] - parser = Base.TOML.Parser(content; filepath=file) - parser.Dates = Dates - return Base.TOML.parse(parser) + parser = TOML.Parser(content; filepath=file) + return TOML.Internals.parse(parser) end end diff --git a/src/Types.jl b/src/Types.jl index e0e1a37e03..27d70e7117 100644 --- a/src/Types.jl +++ b/src/Types.jl @@ -53,8 +53,7 @@ function deepcopy_toml(x::Dict{String, Any}) end # See loading.jl -const TOML_CACHE = let parser = Base.TOML.Parser() - parser.Dates = Dates +const TOML_CACHE = let parser = TOML.Parser() Base.TOMLCache(parser, Dict{String, Dict{String, Any}}()) end const TOML_LOCK = ReentrantLock()