Skip to content

Commit c3a3999

Browse files
committed
Bump Julia requirement to 0.3-, track Julia 0.4 syntax
1 parent 1c8cd4d commit c3a3999

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
julia 0.2-
1+
julia 0.3-
22
@windows BinDeps
33
@windows WinRPM

src/nodes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ attributes(x::XMLElement) = XMLAttrIter(x.node._struct.attrs)
235235
function attributes_dict(x::XMLElement)
236236
# make an dictionary based on attributes
237237

238-
dct = (String=>String)[]
238+
dct = Dict{String,String}()
239239
if has_attributes(x)
240240
for a in attributes(x)
241241
dct[name(a)] = value(a)

test/REQUIRE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Compat

test/create.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using LightXML
1+
using LightXML, Compat
22

33
xdoc = XMLDocument()
44

@@ -10,7 +10,7 @@ set_attribute(xs1, "tag", "MA")
1010

1111
xs2 = new_child(xroot, "State")
1212
add_text(xs2, "Illinois")
13-
set_attributes(xs2, {"tag"=>"IL", "cap"=>"Springfield"})
13+
set_attributes(xs2, @compat Dict{Any,Any}("tag"=>"IL", "cap"=>"Springfield"))
1414

1515
xs3 = new_child(xroot, "State")
1616
add_text(xs3, "California")

0 commit comments

Comments
 (0)