nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/standard/stream: Renamed streams for more explicit denomination
[nit.git]
/
contrib
/
pep8analysis
/
src
/
pep8analysis.nit
diff --git
a/contrib/pep8analysis/src/pep8analysis.nit
b/contrib/pep8analysis/src/pep8analysis.nit
index
a3231bb
..
abacc8b
100644
(file)
--- a/
contrib/pep8analysis/src/pep8analysis.nit
+++ b/
contrib/pep8analysis/src/pep8analysis.nit
@@
-57,7
+57,7
@@
redef class AnalysisManager
if opt_ast.value then
var printer = new ASTPrinter
printer.enter_visit(ast)
if opt_ast.value then
var printer = new ASTPrinter
printer.enter_visit(ast)
- var of = new OFStream.open("{dir}/{mangled_filename.replace(".pep", ".ast.dot")}")
+ var of = new FileWriter.open("{dir}/{mangled_filename.replace(".pep", ".ast.dot")}")
of.write printer.str
of.close
end
of.write printer.str
of.close
end
@@
-76,7
+76,7
@@
redef class AnalysisManager
var cfg = build_cfg(model)
if opt_cfg.value or opt_cfg_long.value then
var cfg = build_cfg(model)
if opt_cfg.value or opt_cfg_long.value then
- var of = new OFStream.open("{dir}/{mangled_filename.replace(".pep", ".cfg.dot")}")
+ var of = new FileWriter.open("{dir}/{mangled_filename.replace(".pep", ".cfg.dot")}")
cfg.print_dot(of, opt_cfg_long.value)
of.close
end
cfg.print_dot(of, opt_cfg_long.value)
of.close
end
@@
-95,7
+95,7
@@
redef class AnalysisManager
do_types_analysis(ast, cfg)
# Print results
do_types_analysis(ast, cfg)
# Print results
- var of = new OFStream.open("{dir}/{mangled_filename.replace(".pep",".analysis.dot")}")
+ var of = new FileWriter.open("{dir}/{mangled_filename.replace(".pep",".analysis.dot")}")
cfg.print_dot(of, true)
of.close
end
cfg.print_dot(of, true)
of.close
end