From e7822aa364fcc392476ded5537948292f7db2300 Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Thu, 17 Feb 2022 18:37:51 -0800 Subject: Cleanup --- text_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'text_utils.py') diff --git a/text_utils.py b/text_utils.py index 720bf20..564d67e 100644 --- a/text_utils.py +++ b/text_utils.py @@ -71,13 +71,13 @@ def bar_graph( include_text=True, width=70, fgcolor=fg("school bus yellow"), - reset=reset(), + reset_seq=reset(), left_end="[", right_end="]", ) -> str: """Returns a string containing a bar graph. - >>> bar_graph(0.5, fgcolor='', reset='') + >>> bar_graph(0.5, fgcolor='', reset_seq='') '[███████████████████████████████████ ] 50.0%' """ @@ -104,7 +104,7 @@ def bar_graph( + "█" * whole_width + part_char + " " * (width - whole_width - 1) - + reset + + reset_seq + right_end + " " + text -- cgit v1.3