From 2e3bc981e59d9ac4e45f6b53007a3c0be793bdde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kenta=20Sato=20=28=E4=BD=90=E8=97=A4=20=E5=BB=BA=E5=A4=AA?= =?UTF-8?q?=29?= Date: Sat, 10 Mar 2018 23:08:36 +0900 Subject: [PATCH] require TranscodingStreams.jl 0.5 (#13) --- REQUIRE | 2 +- src/CodecZlib.jl | 18 +++--------------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/REQUIRE b/REQUIRE index 12512a4..e7effea 100644 --- a/REQUIRE +++ b/REQUIRE @@ -1,3 +1,3 @@ julia 0.6.0 -TranscodingStreams 0.3 +TranscodingStreams 0.5 Compat 0.55 diff --git a/src/CodecZlib.jl b/src/CodecZlib.jl index 685ad99..df76175 100644 --- a/src/CodecZlib.jl +++ b/src/CodecZlib.jl @@ -27,22 +27,10 @@ import TranscodingStreams: Memory, Error, initialize, - finalize + finalize, + splitkwargs -# TODO: This method will be added in the next version of TranscodingStreams.jl. -function splitkwargs(kwargs, keys) - hits = [] - others = [] - for kwarg in kwargs - push!(kwarg[1] ∈ keys ? hits : others, kwarg) - end - return hits, others -end - -# For compatibility. -if !isdefined(Base, :Cvoid) - const Cvoid = Void -end +using Compat: Cvoid include("libz.jl") include("compression.jl")