summaryrefslogtreecommitdiff
path: root/integration-tests
diff options
context:
space:
mode:
authorJiri Podivin <jpodivin@redhat.com>2022-10-26 14:02:07 +0200
committerJiri Podivin <jpodivin@redhat.com>2023-03-01 09:18:15 +0100
commit72e81d7d846a8e306fd8d98e2f15270a8a537620 (patch)
tree133d0f4b98c992e0a265952a502bd2720dffb2b7 /integration-tests
parentfb9a3a9b2daa21317d0adceca86215c393e975e6 (diff)
downloadcliff-master.tar.gz
Removing helper functions providing Python < 3.3 compatibilityHEAD4.3.0master
Functions used for deriving terminal width are no longer necessary, as Python 3.3 introduced[0] built in solution. Remaining helper function `utils.terminal_width` received docstring explaining return parameters. Method `_assign_max_widths` of the `TableFormatter` class was refactored to no longer use the `stdout` argument. Uses of the method were adjusted accordingly. Method now also has minimal docstring. Minor adjustment was made to inline comments to more closely reflect functionality of the code. [0]https://docs.python.org/3.8/library/os.html?highlight=get_terminal_size#os.get_terminal_size Signed-off-by: Jiri Podivin <jpodivin@redhat.com> Change-Id: I2898f099227e8c97aef6492c60f2f99038aa1357
Diffstat (limited to 'integration-tests')
0 files changed, 0 insertions, 0 deletions