Skip to content

Commit

Permalink
Fix Dict depwarn on julia 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Jul 29, 2016
1 parent 71b6ab3 commit e6dff6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plain.jl
Expand Up @@ -670,7 +670,7 @@ function h5readattr(filename, name::String)
fid=h5open(filename,"r")
try
a=attrs(fid[name])
dat = @compat Dict([x=>read(a[x]) for x in names(a)])
dat = @compat Dict([(x,read(a[x])) for x in names(a)]) # TODO: switch to generator syntax when 0.4 is no longer supported
finally
close(fid)
end
Expand Down

0 comments on commit e6dff6d

Please sign in to comment.