From e47813b73bdfbb4367ca115491c3f7c2ba175d1a Mon Sep 17 00:00:00 2001 From: Lakshya Khatri Date: Tue, 21 Jul 2020 15:38:15 +0530 Subject: [PATCH] Fix build error for Julia: 1.3 --- src/CDSAPI.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CDSAPI.jl b/src/CDSAPI.jl index 17eb778..8f4b3a3 100644 --- a/src/CDSAPI.jl +++ b/src/CDSAPI.jl @@ -75,7 +75,7 @@ function py2ju(dictstr) # if there's no pair after the last comma if findnext(":", dictstr_cpy, lastcomma_pos) == nothing # remove the comma - dictstr_cpy = dictstr_cpy[begin:lastcomma_pos - 1] * dictstr_cpy[lastcomma_pos + 1:end] + dictstr_cpy = dictstr_cpy[firstindex(dictstr_cpy):(lastcomma_pos - 1)] * dictstr_cpy[(lastcomma_pos + 1):lastindex(dictstr_cpy)] end # removes trailing comma from a list