fix some warnings (#16952)
This commit is contained in:
parent
910720b0d4
commit
f140c92409
22 changed files with 119 additions and 119 deletions
|
|
@ -917,7 +917,7 @@ when isMainModule:
|
|||
# Try to work running in both the subdir or at the root.
|
||||
for filename in ["doc/keywords.txt", "../../../doc/keywords.txt"]:
|
||||
try:
|
||||
let input = string(readFile(filename))
|
||||
let input = readFile(filename)
|
||||
keywords = input.splitWhitespace()
|
||||
break
|
||||
except:
|
||||
|
|
|
|||
|
|
@ -1870,7 +1870,7 @@ proc dirInclude(p: var RstParser): PRstNode =
|
|||
result = newRstNode(rnLiteralBlock)
|
||||
result.add(newRstNode(rnLeaf, readFile(path)))
|
||||
else:
|
||||
let inputString = readFile(path).string()
|
||||
let inputString = readFile(path)
|
||||
let startPosition =
|
||||
block:
|
||||
let searchFor = n.getFieldValue("start-after").strip()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue