Fix deprecation warning from mmap

pull/35/head
Matti Pastell 2016-04-12 17:16:44 +03:00
parent 8a35d741f6
commit a0fbf826c0
1 changed files with 1 additions and 3 deletions

View File

@ -15,9 +15,7 @@ const input_formats = @compat Dict{AbstractString, Any}(
@doc "Read and parse input document" ->
function read_doc(source::AbstractString, format="noweb"::AbstractString)
document = bytestring(open(source) do io
mmap_array(Uint8,(filesize(source),),io)
end)
document = readall(source)
parsed = parse_doc(document, format)
doc = WeaveDoc(source, parsed)
end