diff options
| author | Scott Gasch <[email protected]> | 2022-02-17 18:37:51 -0800 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2022-02-17 18:37:51 -0800 |
| commit | e7822aa364fcc392476ded5537948292f7db2300 (patch) | |
| tree | 571724e4cd898004f3765cb7f74c5155cf4744dd /text_utils.py | |
| parent | 5fd3697843f4d03e4bb65a0346764805aabc2fde (diff) | |
Cleanup
Diffstat (limited to 'text_utils.py')
| -rw-r--r-- | text_utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
