doc updates

This commit is contained in:
Manuel Barkhau 2020-10-03 23:44:38 +00:00
parent 98647519c2
commit f92c7347ae
3 changed files with 20 additions and 3 deletions

View file

@ -26,6 +26,8 @@ def update_cfg_from_vcs(cfg: config.Config, all_tags: typ.List[str]) -> config.C
logger.debug("no vcs tags found")
return cfg
# TODO (mb 2020-10-03): This codepath is not tested since switch to
# v2 as default version_pattern.
version_tags.sort(reverse=True)
_debug_tags = ", ".join(version_tags[:3])
logger.debug(f"found tags: {_debug_tags} ... ({len(version_tags)} in total)")

View file

@ -414,7 +414,6 @@ def _format_segment_tree(
segtree : SegmentTree,
part_values: PartValues,
) -> FormatedSeg:
# print("??>>>", seg_tree)
# NOTE (mb 2020-10-02): starting from the right, if there is any non-zero
# part, all further parts going left will be used. In other words, a part
# is only omitted, if all parts to the right of it were also omitted.
@ -432,7 +431,6 @@ def _format_segment_tree(
is_zero = is_zero and formatted_seg.is_zero
result_parts.append(formatted_seg.result)
# print("<<<<", is_zero, result_parts)
result = "" if is_zero else "".join(result_parts)
return FormatedSeg(False, is_zero, result)