Skip to content

Commit c2566c7

Browse files
Merge pull request #22 from ScottPJones/spj/fix06
Handle deprecated drop method for v0.6
2 parents 4bb58f4 + e46a59b commit c2566c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/dict_build.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ function build_indvar_dict(ex)
55
arg = ex.args[i].args[1] #Get the first thing, should be dsomething
66
firstarg = Symbol(first(string(arg))) # Check for d
77
if firstarg == :d
8-
nodarg = Symbol(join(drop(string(arg), 1))) # join(drop(s, 1)) is 2:end
8+
@static if VERSION < v"0.6.0-dev.1015"
9+
nodarg = Symbol(join(drop(string(arg), 1))) # join(drop(s, 1)) is 2:end
10+
else
11+
nodarg = Symbol(join(Base.Iterators.drop(string(arg), 1))) # join(drop(s, 1)) is 2:end
12+
end
913
if !haskey(indvar_dict,nodarg)
1014
cur_sym += 1
1115
indvar_dict[nodarg] = cur_sym

0 commit comments

Comments
 (0)