INNER CODE UNIT · Python

lkind

theyosh/TerrariumPI · contrib/pipes/__init__.py:218

        lkind = list[i - 1][2]
        rkind = list[i][2]
        if lkind[1] == "f" or rkind[0] == "f":
            fd, temp = tempfile.mkstemp()
            os.close(fd)
            garbage.append(temp)
            list[i - 1][-1] = list[i][0] = temp
    #
    for item in list:
        [inf, cmd, kind, outf] = item
        if kind[1] == "f":
            cmd = "OUT=" + quote(outf) + "; " + cmd
        if kind[0] == "f":
            cmd = "IN=" + quote(inf) + "; " + cmd
        if kind[0] == "-" and inf:
            cmd = cmd + " <" + quote(inf)
        if kind[1] == "-" and outf:
            cmd = cmd + " >" + quote(outf)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…