Skip to content

Commit

Permalink
revised names for consistency with base (e.g. writecsv, readcsv)
Browse files Browse the repository at this point in the history
  • Loading branch information
samoconnor committed Jan 8, 2016
1 parent afbbeef commit e95bdf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Libz.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ function gzopen(f::Function, filename::AbstractString)
open(io->f(ZlibInflateInputStream(io)), filename)
end

gzwrite(filename::AbstractString, data) = gzopen(io->write(io, data), filename, "w")
gzreadall(filename::AbstractString) = gzopen(readall, filename)
gzreadbytes(filename::AbstractString) = gzopen(readbytes, filename)
writegz(filename::AbstractString, data) = gzopen(io->write(io, data), filename, "w")
readgz(filename::AbstractString) = gzopen(readbytes, filename)
readgzstring(filename::AbstractString) = gzopen(readall, filename)

end # module Libz

Expand Down

1 comment on commit e95bdf1

@kmsquire
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also need to change the names of the exports.

Please sign in to comment.