Skip to content

Commit f8e98c6

Browse files
committed
Deprecate 1 argument write. fix #17612
1 parent 0b9364d commit f8e98c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

base/deprecated.jl

+2
Original file line numberDiff line numberDiff line change
@@ -806,4 +806,6 @@ end)
806806

807807
const _oldstyle_array_vcat_ = false
808808

809+
@deprecate write(x) write(STDOUT::IO, x)
810+
809811
# End deprecations scheduled for 0.6

base/iostream.jl

-2
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,6 @@ function takebuf_raw(s::IOStream)
191191
return buf, sz
192192
end
193193

194-
write(x) = write(STDOUT::IO, x)
195-
196194
function readuntil(s::IOStream, delim::UInt8)
197195
ccall(:jl_readuntil, Array{UInt8,1}, (Ptr{Void}, UInt8), s.ios, delim)
198196
end

0 commit comments

Comments
 (0)