diff options
author | Ganesh Viswanathan <dev@genotrance.com> | 2018-09-14 18:34:12 -0500 |
---|---|---|
committer | Ganesh Viswanathan <dev@genotrance.com> | 2018-09-14 18:34:12 -0500 |
commit | 9340885251e7791ee5a03f2b75e168f341e231e5 (patch) | |
tree | 86b4a189f01a1c114f5bb9e48d33e09a731953b0 /compiler/linter.nim | |
parent | 4e305c304014c5ef90413d6cab562f5e2b34e573 (diff) | |
parent | b9dc486db15bb1b4b6f3cef7626733b904d377f7 (diff) | |
download | Nim-9340885251e7791ee5a03f2b75e168f341e231e5.tar.gz |
Merge remote-tracking branch 'upstream/devel' into test-7010
Diffstat (limited to 'compiler/linter.nim')
-rw-r--r-- | compiler/linter.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/linter.nim b/compiler/linter.nim index 7c9cdec83..0b69db8cb 100644 --- a/compiler/linter.nim +++ b/compiler/linter.nim @@ -14,7 +14,7 @@ import strutils, os, intsets, strtabs import options, ast, astalgo, msgs, semdata, ropes, idents, - lineinfos + lineinfos, pathutils const Letters* = {'a'..'z', 'A'..'Z', '0'..'9', '\x80'..'\xFF', '_'} @@ -42,7 +42,7 @@ proc overwriteFiles*(conf: ConfigRef) = let newFile = if gOverWrite: conf.m.fileInfos[i].fullpath else: conf.m.fileInfos[i].fullpath.changeFileExt(".pretty.nim") try: - var f = open(newFile, fmWrite) + var f = open(newFile.string, fmWrite) for line in conf.m.fileInfos[i].lines: if doStrip: f.write line.strip(leading = false, trailing = true) @@ -51,7 +51,7 @@ proc overwriteFiles*(conf: ConfigRef) = f.write(conf.m.fileInfos[i], "\L") f.close except IOError: - rawMessage(conf, errGenerated, "cannot open file: " & newFile) + rawMessage(conf, errGenerated, "cannot open file: " & newFile.string) proc `=~`(s: string, a: openArray[string]): bool = for x in a: |