Skip to content

Commit

Permalink
tweaks per @nalimilan's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
samoconnor committed Jan 16, 2016
1 parent 7d5def6 commit a6309d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion base/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ eof(io::AbstractPipe) = eof(pipe_reader(io))
reseteof(io::AbstractPipe) = reseteof(pipe_reader(io))


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

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

Expand Down
6 changes: 3 additions & 3 deletions doc/DocCheck.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function _undocumented_rst()
depdoc = havecount = total = 0
out = AbstractString["The following exports are not documented:"]
undoc_exports = Set()
exports=[strip(x) for x in split(replace(open(readstring, "$JULIA_HOME/../../base/exports.jl"),",",""),"\n")]
exports=[strip(x) for x in split(replace(readstring("$JULIA_HOME/../../base/exports.jl"),",",""),"\n")]
for line in exports
if search(line, "deprecated")!=0:-1; continue end
if haskey(MODULE_DICT, line); havecount+=1; total+=1; continue end
Expand All @@ -117,7 +117,7 @@ function _undocumented_rst()

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

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

0 comments on commit a6309d4

Please sign in to comment.