mirror of https://github.com/mpastell/Weave.jl
Fix deprecation warning from mmap
parent
8a35d741f6
commit
a0fbf826c0
|
@ -15,9 +15,7 @@ const input_formats = @compat Dict{AbstractString, Any}(
|
||||||
|
|
||||||
@doc "Read and parse input document" ->
|
@doc "Read and parse input document" ->
|
||||||
function read_doc(source::AbstractString, format="noweb"::AbstractString)
|
function read_doc(source::AbstractString, format="noweb"::AbstractString)
|
||||||
document = bytestring(open(source) do io
|
document = readall(source)
|
||||||
mmap_array(Uint8,(filesize(source),),io)
|
|
||||||
end)
|
|
||||||
parsed = parse_doc(document, format)
|
parsed = parse_doc(document, format)
|
||||||
doc = WeaveDoc(source, parsed)
|
doc = WeaveDoc(source, parsed)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue