From 2670b3be92a7469c91ea08e5de1d2773eb6fe56c Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Tue, 23 Jan 2018 09:38:14 +0100 Subject: [PATCH] fix `using A.B` and `using A: B` warnings in Dates, Printf, Profile, SharedArrays, SuiteSparse and Distributed stdlibs. The warnings are not visible when these stdlibs are `required` in sysimg.jl. --- stdlib/Dates/src/Dates.jl | 5 ++--- stdlib/Distributed/src/clusterserialize.jl | 3 ++- stdlib/Printf/src/Printf.jl | 2 +- stdlib/Profile/src/Profile.jl | 2 +- stdlib/SharedArrays/src/SharedArrays.jl | 2 +- stdlib/SuiteSparse/src/cholmod.jl | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/stdlib/Dates/src/Dates.jl b/stdlib/Dates/src/Dates.jl index 970fa51cd8343..5d7db6f710e9f 100644 --- a/stdlib/Dates/src/Dates.jl +++ b/stdlib/Dates/src/Dates.jl @@ -34,9 +34,8 @@ for more information. """ module Dates -import ..Base: ==, div, fld, mod, rem, gcd, lcm, +, -, *, /, % -import ..Base.broadcast -using Base.Printf.@sprintf +import Base: ==, div, fld, mod, rem, gcd, lcm, +, -, *, /, %, broadcast +using Printf: @sprintf using Base.Iterators diff --git a/stdlib/Distributed/src/clusterserialize.jl b/stdlib/Distributed/src/clusterserialize.jl index 01c5ada9f5fdb..55ed7dcd11326 100644 --- a/stdlib/Distributed/src/clusterserialize.jl +++ b/stdlib/Distributed/src/clusterserialize.jl @@ -1,8 +1,9 @@ # This file is a part of Julia. License is MIT: https://julialang.org/license using Serialization: serialize_cycle, deserialize_cycle, writetag, - __deserialized_types__, serialize_typename, deserialize_typename, + serialize_typename, deserialize_typename, TYPENAME_TAG, reset_state, serialize_type +using Serialization.__deserialized_types__ import Serialization: object_number, lookup_object_number, remember_object diff --git a/stdlib/Printf/src/Printf.jl b/stdlib/Printf/src/Printf.jl index e9a0fe3d0bbcb..6abf46719b8b4 100644 --- a/stdlib/Printf/src/Printf.jl +++ b/stdlib/Printf/src/Printf.jl @@ -10,7 +10,7 @@ export @printf, @sprintf using Base.Printf: _printf, is_str_expr, fix_dec, DIGITS, print_fixed, decode_dec, decode_hex, ini_hex, ini_HEX, print_exp_a, decode_0ct, decode_HEX, ini_dec, print_exp_e, decode_oct, _limit -using Unicode.textwidth +using Unicode: textwidth """ @printf([io::IOStream], "%Fmt", args...) diff --git a/stdlib/Profile/src/Profile.jl b/stdlib/Profile/src/Profile.jl index ede5039ec4599..8ac2660eca222 100644 --- a/stdlib/Profile/src/Profile.jl +++ b/stdlib/Profile/src/Profile.jl @@ -9,7 +9,7 @@ module Profile import Base.StackTraces: lookup, UNKNOWN, show_spec_linfo using Base: iszero -using Base.Printf.@sprintf +using Printf: @sprintf export @profile diff --git a/stdlib/SharedArrays/src/SharedArrays.jl b/stdlib/SharedArrays/src/SharedArrays.jl index 9784b5f156ff5..44c681c153995 100644 --- a/stdlib/SharedArrays/src/SharedArrays.jl +++ b/stdlib/SharedArrays/src/SharedArrays.jl @@ -17,7 +17,7 @@ using Serialization: serialize_cycle_header, serialize_type, writetag, UNDEFREF_ import Serialization: serialize, deserialize import Distributed: RRID, procs import Base.Filesystem: JL_O_CREAT, JL_O_RDWR, S_IRUSR, S_IWUSR -using Base.Printf.@sprintf +using Printf: @sprintf export SharedArray, SharedVector, SharedMatrix, sdata, indexpids, localindices diff --git a/stdlib/SuiteSparse/src/cholmod.jl b/stdlib/SuiteSparse/src/cholmod.jl index 8ba42d1d0c7d8..abc65b49f00c4 100644 --- a/stdlib/SuiteSparse/src/cholmod.jl +++ b/stdlib/SuiteSparse/src/cholmod.jl @@ -11,7 +11,7 @@ import LinearAlgebra: (\), issuccess, issymmetric, ldltfact, ldltfact!, logdet using SparseArrays -using Base.Printf.@printf +using Printf: @printf import Libdl