Skip to content

Commit

Permalink
Deprecate 1 argument write. fix #17612
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoegh committed Jul 27, 2016
1 parent 0b9364d commit 9d9623d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,8 @@ macro MIME(s)
end
end)

@deprecate write(x) write(STDOUT::IO, x)

# During the 0.5 development cycle, do not add any deprecations below this line
# To be deprecated in 0.6

Expand Down
2 changes: 0 additions & 2 deletions base/iostream.jl
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,6 @@ function takebuf_raw(s::IOStream)
return buf, sz
end

write(x) = write(STDOUT::IO, x)

function readuntil(s::IOStream, delim::UInt8)
ccall(:jl_readuntil, Array{UInt8,1}, (Ptr{Void}, UInt8), s.ios, delim)
end
Expand Down

0 comments on commit 9d9623d

Please sign in to comment.