MCPcopy Index your code
hub / github.com/nodejs/node / wrap

Function wrap

tools/zos/sdwrap.py:6–26  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

4import sys
5
6def wrap(args):
7 l = args.input.readline(72)
8 firstline = True
9 while l:
10 if l[-1] == '\n':
11 if firstline:
12 outstr = "{}".format(l)
13 else:
14 outstr = " {}".format(l)
15 firstline = True
16 l = args.input.readline(72)
17 else:
18 if firstline:
19 outstr = "{:<71}*\n".format(l[:-1])
20 firstline = False
21 else:
22 outstr = " {:<70}*\n".format(l[:-1])
23 l = l[-1] + args.input.readline(70)
24 args.output.write(outstr)
25
26 return 0
27
28def unwrap(args):
29 l = args.input.readline()

Callers 1

MainFunction · 0.70

Calls 2

formatMethod · 0.65
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…