nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/file: move the call of `stdout.set_buffering_mode` to Stdout
[nit.git]
/
lib
/
ini.nit
diff --git
a/lib/ini.nit
b/lib/ini.nit
index
71868b6
..
241d22c
100644
(file)
--- a/
lib/ini.nit
+++ b/
lib/ini.nit
@@
-32,7
+32,7
@@
module ini
# assert config.has_key("foo.bar")
# assert config["foo.bar"] == "foobar"
class ConfigTree
# assert config.has_key("foo.bar")
# assert config["foo.bar"] == "foobar"
class ConfigTree
- super Streamable
+ super Writable
# The ini file used to read/store data
var ini_file: String
# The ini file used to read/store data
var ini_file: String
@@
-186,7
+186,7
@@
class ConfigTree
# assert config["goo.boo.baz.bar"] == "gooboobazbar"
fun load do
roots.clear
# assert config["goo.boo.baz.bar"] == "gooboobazbar"
fun load do
roots.clear
- var stream = new IFStream.open(ini_file)
+ var stream = new FileReader.open(ini_file)
var path: nullable String = null
while not stream.eof do
var line = stream.read_line
var path: nullable String = null
while not stream.eof do
var line = stream.read_line