From 8fa3af163a3ecd45f73244bf50ab5d1deb64d399 Mon Sep 17 00:00:00 2001 From: aminya Date: Sat, 29 Feb 2020 17:18:59 -0600 Subject: [PATCH] using print instead of @printf --- Project.toml | 1 - src/EzXML.jl | 1 - src/node.jl | 2 +- src/streamreader.jl | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index eda9ef7..85a22e5 100644 --- a/Project.toml +++ b/Project.toml @@ -4,7 +4,6 @@ authors = ["Kenta Sato "] version = "1.1.0" [deps] -Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" XML2_jll = "02c8fc9c-b97f-50b9-bbe4-9be30ff0a78a" [compat] diff --git a/src/EzXML.jl b/src/EzXML.jl index 08c226c..53dbf76 100644 --- a/src/EzXML.jl +++ b/src/EzXML.jl @@ -102,7 +102,6 @@ export hasnodeattributes, nodeattributes -using Printf: @printf using XML2_jll: libxml2 include("error.jl") diff --git a/src/node.jl b/src/node.jl index 96396db..0250fb5 100644 --- a/src/node.jl +++ b/src/node.jl @@ -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) diff --git a/src/streamreader.jl b/src/streamreader.jl index b982f44..73b22df 100644 --- a/src/streamreader.jl +++ b/src/streamreader.jl @@ -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).