Skip to content

Commit

Permalink
updated readbytes, readsring
Browse files Browse the repository at this point in the history
  • Loading branch information
samoconnor committed Jan 21, 2016
1 parent 62a6bfe commit 6b3953c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -719,10 +719,10 @@ end


if VERSION < v"0.5.0-dev+2228"
const readall = readstring
const readbytes = read
export readall
export readbytes
const readstring = readall
export readstring

read(s::IO, nb::Integer=typemax(Int)) = readbytes(s, nb)

write(filename::AbstractString, args...) = open(io->write(io, args...), filename, "w")

Expand Down

0 comments on commit 6b3953c

Please sign in to comment.