diff options
author | 2016-07-26 11:47:15 +0300 | |
---|---|---|
committer | 2016-07-26 11:47:15 +0300 | |
commit | 90c64917b59e83556454d1338634473cdcd952a9 (patch) | |
tree | 1471d34521aafd039d2014e3f8ee4dedf9faaebb /scripts/automation/trex_control_plane/stl/trex_stl_lib/utils | |
parent | e3b43560ff867c35ee726da9a98aed8acdc53b70 (diff) |
some more TUI fixes
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/utils')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/text_opts.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/text_opts.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/text_opts.py index 26e64dae..bfb96950 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/text_opts.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/text_opts.py @@ -27,7 +27,10 @@ class TextCodesStripper: def strip (s): return re.sub(TextCodesStripper.pattern, '', s) -def format_num (size, suffix = "", compact = True, opts = ()): +def format_num (size, suffix = "", compact = True, opts = None): + if opts is None: + opts = () + txt = "NaN" if type(size) == str: |