From ceeb8ba06a076a78ff968a0e2d433835b7eea5ef Mon Sep 17 00:00:00 2001 From: Martin Holters Date: Mon, 27 Nov 2017 09:54:50 +0100 Subject: [PATCH] Fix deprecation: (x...) -> (x...,) --- src/ProgressMeter.jl | 2 +- test/test.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ProgressMeter.jl b/src/ProgressMeter.jl index 746fd8c..5680ea3 100644 --- a/src/ProgressMeter.jl +++ b/src/ProgressMeter.jl @@ -35,7 +35,7 @@ end String constructor for BarGlyphs - will split the string into 5 chars """ function BarGlyphs(s::AbstractString) - glyphs = (s...) + glyphs = (s...,) if !isa(glyphs, NTuple{5,Char}) error(""" Invalid string in BarGlyphs constructor. diff --git a/test/test.jl b/test/test.jl index 909fb12..ed5c431 100644 --- a/test/test.jl +++ b/test/test.jl @@ -205,7 +205,7 @@ function testfunc14(barglyphs) ProgressMeter.next!(p) end # with the 5 char constructor - chars = (barglyphs...) + chars = (barglyphs...,) p = ProgressMeter.Progress(n, barglyphs=ProgressMeter.BarGlyphs(chars...)) for i in 1:n sleep(0.1)