@@ -91,7 +91,7 @@ function _undocumented_rst()
91
91
depdoc = havecount = total = 0
92
92
out = AbstractString[" The following exports are not documented:" ]
93
93
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 " )]
95
95
for line in exports
96
96
if search (line, " deprecated" )!= 0 : - 1 ; continue end
97
97
if haskey (MODULE_DICT, line); havecount+= 1 ; total+= 1 ; continue end
@@ -117,7 +117,7 @@ function _undocumented_rst()
117
117
118
118
append! (out, AbstractString[" " , " Documented and deprecated functions/exports (please update docs)" , " " ])
119
119
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 " )]
121
121
for line in deprecated
122
122
if startswith (line, " @deprecated" )
123
123
fn = split (line, r" +" )[2 ]
@@ -141,7 +141,7 @@ function gen_undocumented_template(outfile = "$JULIA_HOME/../../doc/UNDOCUMENTED
141
141
init_help ()
142
142
println (out, " .. currentmodule:: Base" )
143
143
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 " )]
145
145
for line in exports
146
146
if search (line, " deprecated" )!= 0 : - 1 ; continue end
147
147
if haskey (MODULE_DICT, line); continue end
0 commit comments