From a6c91022712847e42565677b6c53f76ce85eaf2f Mon Sep 17 00:00:00 2001 From: Giorgio Calderone Date: Mon, 20 May 2019 16:51:10 +0200 Subject: [PATCH] Fixed functionality with DrySessions --- src/Gnuplot.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Gnuplot.jl b/src/Gnuplot.jl index baf9705..1583328 100644 --- a/src/Gnuplot.jl +++ b/src/Gnuplot.jl @@ -205,6 +205,8 @@ function println(gp::Session, str::AbstractString) end +println(gp::DrySession, d::DataSource) = nothing + function println(gp::Session, d::DataSource) if typeof(gp) == concretetype(Session) if !state.silent && state.verbose @@ -231,7 +233,7 @@ function println(gp::Session, d::DataSource) end # -------------------------------------------------------------------- -writeread(gp::DrySession, str::AbstractString) = "" +writeread(gp::DrySession, str::AbstractString) = [""] function writeread(gp::Session, str::AbstractString) global state silent = state.silent