Skip to content

Commit

Permalink
julia v1.0 fix for print_summary
Browse files Browse the repository at this point in the history
  • Loading branch information
ccoffrin committed Dec 18, 2018
1 parent 6cc0da7 commit 645b8c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/PowerModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ if VERSION < v"0.7.0-"
import Compat: eachmatch
import Compat: undef
import Compat: pairs
import Compat: stdout

LinearAlgebra = Compat.LinearAlgebra

Expand Down
4 changes: 2 additions & 2 deletions src/core/data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ function check_keys(data, keys)
end


"prints the text summary for a data file or dictionary to STDOUT"
"prints the text summary for a data file or dictionary to stdout"
function print_summary(obj::Union{String, Dict{String,Any}}; kwargs...)
summary(STDOUT, obj; kwargs...)
summary(stdout, obj; kwargs...)
end


Expand Down

0 comments on commit 645b8c8

Please sign in to comment.