Deprecate TaintedString (#15423)
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
This commit is contained in:
parent
7b632f9ccb
commit
78a99587a4
36 changed files with 184 additions and 229 deletions
|
|
@ -62,7 +62,7 @@ proc doCaasCommand(session: var NimSession, command: string): string =
|
|||
result = ""
|
||||
|
||||
while true:
|
||||
var line = TaintedString("")
|
||||
var line = ""
|
||||
if session.nim.outputStream.readLine(line):
|
||||
if line.string == "": break
|
||||
result.add(line.string & "\n")
|
||||
|
|
@ -78,7 +78,7 @@ proc doProcCommand(session: var NimSession, command: string): string =
|
|||
var
|
||||
process = startProcess(NimBin, args = session.replaceVars(command).split)
|
||||
stream = outputStream(process)
|
||||
line = TaintedString("")
|
||||
line = ""
|
||||
|
||||
result = ""
|
||||
while stream.readLine(line):
|
||||
|
|
@ -113,12 +113,12 @@ proc doScenario(script: string, output: Stream, mode: TRunMode, verbose: bool):
|
|||
result = true
|
||||
|
||||
var f = open(script)
|
||||
var project = TaintedString("")
|
||||
var project = ""
|
||||
|
||||
if f.readLine(project):
|
||||
var
|
||||
s = startNimSession(script.parentDir / project.string, script, mode)
|
||||
tline = TaintedString("")
|
||||
tline = ""
|
||||
ln = 1
|
||||
|
||||
while f.readLine(tline):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue