handle empty input in print_colon_kv
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
8f5a2803a6
commit
5bae89a9fd
|
@ -28,6 +28,9 @@ def print_colon_kv(pairs: List[Tuple[str, str]]):
|
|||
key1: value1
|
||||
key1000: value2
|
||||
"""
|
||||
if len(pairs) == 0:
|
||||
return
|
||||
|
||||
maxlen = max(len(key) for key, val in pairs)
|
||||
for key, val in pairs:
|
||||
if key != '':
|
||||
|
|
Loading…
Reference in New Issue