MCPcopy Create free account
hub / github.com/ElementsProject/lightning / next_line

Function next_line

tools/generate-wire.py:34–39  ·  view source on GitHub ↗
(args, lines)

Source from the content-addressed store, hash-verified

32
33# Generator to give us one line at a time.
34def next_line(args, lines):
35 if lines is None:
36 lines = fileinput.input(args)
37
38 for i, line in enumerate(lines):
39 yield i + 1, line.strip()
40
41
42# Class definitions, to keep things classy

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected