Skip to content

Commit a6309d4

Browse files
committed
tweaks per @nalimilan's comments
1 parent 7d5def6 commit a6309d4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

base/io.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ eof(io::AbstractPipe) = eof(pipe_reader(io))
6060
reseteof(io::AbstractPipe) = reseteof(pipe_reader(io))
6161

6262

63-
# Exception-safe wrappes. (io = open(); try f(io) finally close(io))
63+
# Exception-safe wrappers (io = open(); try f(io) finally close(io))
6464

6565
write(filename::AbstractString, args...) = open(io->write(io, args...), filename, "w")
6666

doc/DocCheck.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function _undocumented_rst()
9191
depdoc = havecount = total = 0
9292
out = AbstractString["The following exports are not documented:"]
9393
undoc_exports = Set()
94-
exports=[strip(x) for x in split(replace(open(readstring, "$JULIA_HOME/../../base/exports.jl"),",",""),"\n")]
94+
exports=[strip(x) for x in split(replace(readstring("$JULIA_HOME/../../base/exports.jl"),",",""),"\n")]
9595
for line in exports
9696
if search(line, "deprecated")!=0:-1; continue end
9797
if haskey(MODULE_DICT, line); havecount+=1; total+=1; continue end
@@ -117,7 +117,7 @@ function _undocumented_rst()
117117

118118
append!(out, AbstractString["", "Documented and deprecated functions/exports (please update docs)", ""])
119119

120-
deprecated=[strip(x) for x in split(replace(open(readstring, "$JULIA_HOME/../../base/deprecated.jl"),",",""),"\n")]
120+
deprecated=[strip(x) for x in split(replace(readstring("$JULIA_HOME/../../base/deprecated.jl"),",",""),"\n")]
121121
for line in deprecated
122122
if startswith(line, "@deprecated")
123123
fn = split(line, r" +")[2]
@@ -141,7 +141,7 @@ function gen_undocumented_template(outfile = "$JULIA_HOME/../../doc/UNDOCUMENTED
141141
init_help()
142142
println(out, ".. currentmodule:: Base")
143143
println(out)
144-
exports=[strip(x) for x in split(replace(open(readstring, "$JULIA_HOME/../../base/exports.jl"),",",""),"\n")]
144+
exports=[strip(x) for x in split(replace(readstring("$JULIA_HOME/../../base/exports.jl"),",",""),"\n")]
145145
for line in exports
146146
if search(line, "deprecated")!=0:-1; continue end
147147
if haskey(MODULE_DICT, line); continue end

0 commit comments

Comments
 (0)