Skip to content

Commit

Permalink
using print instead of @printf
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Feb 29, 2020
1 parent 8778e29 commit 8fa3af1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ authors = ["Kenta Sato <[email protected]>"]
version = "1.1.0"

[deps]
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
XML2_jll = "02c8fc9c-b97f-50b9-bbe4-9be30ff0a78a"

[compat]
Expand Down
1 change: 0 additions & 1 deletion src/EzXML.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ export
hasnodeattributes,
nodeattributes

using Printf: @printf
using XML2_jll: libxml2

include("error.jl")
Expand Down
2 changes: 1 addition & 1 deletion src/node.jl
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ function Base.show(io::IO, node::Node)
else
desc = repr(ntype)
end
@printf(io, "%s(<%s>)", prefix, desc)
print(io, "$(prefix)(<$(desc)>)")
end

function Base.print(io::IO, node::Node)
Expand Down
2 changes: 1 addition & 1 deletion src/streamreader.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ end
function Base.show(io::IO, reader::StreamReader)
prefix = isdefined(Main, :StreamReader) ? "StreamReader" : "EzXML.StreamReader"
nodetype_reader = repr(nodetype(reader))
@printf(io, "%s(<%s>)", prefix, nodetype_reader)
print(io, "$(prefix)(<$(nodetype_reader)>)")
end

# Reader type (enum xmlReaderTypes).
Expand Down

0 comments on commit 8fa3af1

Please sign in to comment.