Skip to content

Commit

Permalink
Merge pull request #32 from tkelman/minver
Browse files Browse the repository at this point in the history
Fix lower bound for takebuf_string method
  • Loading branch information
Ben J. Ward authored Jan 18, 2017
2 parents 6ac5963 + 0eb5d52 commit d0eed65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ if VERSION < v"0.6.0-dev.1256"
end
end

if v"0.5-" <= VERSION < v"0.6.0-dev.1256"
if v"0.5" <= VERSION < v"0.6.0-dev.1256"
function Base.takebuf_string(stream::BufferedOutputStream{EmptyStream})
return String(takebuf_array(stream))
end
elseif VERSION < v"0.5-"
elseif VERSION < v"0.5"
function Base.takebuf_string(stream::BufferedOutputStream{EmptyStream})
chunk = takebuf_array(stream)
return isvalid(ASCIIString, chunk) ? ASCIIString(chunk) : UTF8String(chunk)
Expand Down

0 comments on commit d0eed65

Please sign in to comment.