We promise a 6 month minumum deprecation period, and versions are every 3 months
(vername)
| 133 | |
| 134 | |
| 135 | def 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 | |
| 150 | def output_member(propname, properties, is_optional, indent, print_type=True, prefix=None): |
no outgoing calls
no test coverage detected