summaryrefslogtreecommitdiff
path: root/lib/inifile
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2018-01-27 12:22:19 -0800
committerOri Bernstein <ori@markovcorp.com>2018-01-27 12:23:36 -0800
commit4c94aae21c2c2aec19d4fd5871cfe92bc09303a7 (patch)
treeb7c773a2274cb3b3ee46d9e90d54a3b6c4ddce37 /lib/inifile
parentdbe9ae0f9dbed30d40952261384b4673766d83ca (diff)
downloadmc-4c94aae21c2c2aec19d4fd5871cfe92bc09303a7.tar.gz
Remove std.sleq
We have std.eq. We still export a generic sleq for compatibility, but we don't need it or want it.
Diffstat (limited to 'lib/inifile')
-rw-r--r--lib/inifile/test/inifile.myr2
-rw-r--r--lib/inifile/write.myr3
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/inifile/test/inifile.myr b/lib/inifile/test/inifile.myr
index ccc43f9..96ccd3b 100644
--- a/lib/inifile/test/inifile.myr
+++ b/lib/inifile/test/inifile.myr
@@ -57,7 +57,7 @@ const itersects = {
const checkval = {ini, sect, key, expected
match inifile.get(ini, sect, key)
| `std.Some val:
- if !std.sleq(val, expected)
+ if !std.eq(val, expected)
std.fatal("{}.{}: expected {}, got {}\n", sect, key, expected, val)
;;
| `std.None:
diff --git a/lib/inifile/write.myr b/lib/inifile/write.myr
index ab4042c..f4d604e 100644
--- a/lib/inifile/write.myr
+++ b/lib/inifile/write.myr
@@ -45,8 +45,7 @@ const writeini = {f, ini
oldsect = ""
for (sect, key) : keys
- std.put("sect={}, oldsect={}\n", sect, oldsect)
- if !std.sleq(sect, oldsect)
+ if !std.eq(sect, oldsect)
bio.put(f, "[{}]\n", sect)
;;
oldsect = sect