Skip to content

Commit f7c3a0c

Browse files
committed
Merge pull request #33 from hofmannmartin/master
Language changes for Julia v0.4.0
2 parents 41d3a32 + b8154f8 commit f7c3a0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nodes.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ attributes(x::XMLElement) = XMLAttrIter(x.node._struct.attrs)
244244
function attributes_dict(x::XMLElement)
245245
# make an dictionary based on attributes
246246

247-
dct = Dict{String,String}()
247+
dct = Dict{AbstractString,AbstractString}()
248248
if has_attributes(x)
249249
for a in attributes(x)
250250
dct[name(a)] = value(a)
@@ -329,7 +329,7 @@ set_attribute(x::XMLElement, name::AbstractString, val) = set_attribute(x, name,
329329
if VERSION < v"0.4.0-dev+980"
330330
const PairTypes = NTuple{2}
331331
else
332-
const PairTypes = Union(NTuple{2}, Pair)
332+
const PairTypes = Union{NTuple{2}, Pair}
333333
end
334334

335335
function set_attributes{P<:PairTypes}(x::XMLElement, attrs::AbstractArray{P})

0 commit comments

Comments
 (0)