(t)
| 52 | |
| 53 | |
| 54 | def log_in_between_versions(t): |
| 55 | (a, b, logs) = t |
| 56 | |
| 57 | v = b and to_version(b) or head_version |
| 58 | dt = get_tags_date(v) |
| 59 | |
| 60 | header = "{} - {} UTC".format(b or head_version, dt) |
| 61 | dashes = ("-" * len(header)) |
| 62 | |
| 63 | def write_log(acc, log): |
| 64 | if log[8:8+7] == 'Release' or log[8:8+7] == 'release': |
| 65 | return acc |
| 66 | acc.append(log_entry(log)) |
| 67 | return acc |
| 68 | |
| 69 | actual_log = list(functools.reduce(write_log, |
| 70 | logs.splitlines(), |
| 71 | [])) |
| 72 | |
| 73 | if len(actual_log) == 0: |
| 74 | entries = '-\n\n' |
| 75 | else: |
| 76 | entries = "\n".join(actual_log) |
| 77 | |
| 78 | return LOG_ENTRY.format(header, dashes, entries) |
| 79 | |
| 80 | |
| 81 | def adjacents(ls, f, res): |
no test coverage detected