Skip to content

Commit

Permalink
Merge 4b7cb02 into bb1e8d6
Browse files Browse the repository at this point in the history
  • Loading branch information
alyst committed Nov 26, 2017
2 parents bb1e8d6 + 4b7cb02 commit 50035c8
Show file tree
Hide file tree
Showing 2 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
Expand Up @@ -6,5 +6,5 @@ SortingAlgorithms
Reexport
WeakRefStrings 0.4.0
DataStreams 0.3.0
GZip
CodecZlib 0.4
Compat 0.36.0
6 changes: 3 additions & 3 deletions src/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import Base: keys, values, insert!


## write.table
using GZip
using CodecZlib, TranscodingStreams

export writetable
"""
Expand Down Expand Up @@ -92,9 +92,9 @@ function writetable(filename::AbstractString,
end
end

openfunc = endswith(filename, ".gz") ? gzopen : open
encoder = endswith(filename, ".gz") ? GzipCompressorStream : NoopStream

openfunc(filename, append ? "a" : "w") do io
open(encoder, filename, append ? "a" : "w") do io
printtable(io,
df,
header = header,
Expand Down

0 comments on commit 50035c8

Please sign in to comment.