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

Function deprecated_to_deleted

tools/fromschema.py:135–147  ·  view source on GitHub ↗

We promise a 6 month minumum deprecation period, and versions are every 3 months

(vername)

Source from the content-addressed store, hash-verified

133
134
135def deprecated_to_deleted(vername):
136 """We promise a 6 month minumum deprecation period, and versions are every 3 months"""
137 assert vername.startswith('v')
138 base = [int(s) for s in vername[1:].split('.')[0:2]]
139 if base == [0, 12]:
140 base = [22, 8]
141 base[1] += 9
142 if base[1] > 12:
143 base[0] += 1
144 base[1] -= 12
145 # Christian points out versions should sort well lexographically,
146 # so we zero-pad single-digits.
147 return 'v{}.{:0>2}'.format(base[0], base[1])
148
149
150def output_member(propname, properties, is_optional, indent, print_type=True, prefix=None):

Callers 2

output_memberFunction · 0.85
generate_descriptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected