Skip to content

Commit

Permalink
Compat update for String rename (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski authored and tkelman committed Jul 2, 2016
1 parent 19f2656 commit b263d35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
julia 0.3
Compat
Compat 0.7.16
@windows WinRPM
2 changes: 1 addition & 1 deletion src/LightXML.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ VERSION >= v"0.4.0-dev+6521" && __precompile__()

module LightXML

using Compat
using Compat; import Compat.String

# iteratorsize is new in 0.5, declare it here for older versions. However,
# we do not actually support calling these, since the traits are not defined
Expand Down
4 changes: 2 additions & 2 deletions src/cdata.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function new_cdatanode(xdoc::XMLDocument, txt::ASCIIString)
function new_cdatanode(xdoc::XMLDocument, txt::String)
p = ccall((:xmlNewCDataBlock,libxml2), Xptr, (Xptr, Xstr, Cint), xdoc.ptr, txt, length(txt)+1)
XMLNode(p)
end

add_cdata(xdoc::XMLDocument, x::XMLElement, txt::ASCIIString) = add_child(x, new_cdatanode(xdoc,txt))
add_cdata(xdoc::XMLDocument, x::XMLElement, txt::String) = add_child(x, new_cdatanode(xdoc,txt))

0 comments on commit b263d35

Please sign in to comment.