diff --git a/apstools/utils/device_info.py b/apstools/utils/device_info.py index 105ac0166..b288f8900 100644 --- a/apstools/utils/device_info.py +++ b/apstools/utils/device_info.py @@ -228,7 +228,7 @@ def truncate(value, width, pad): """Ensure that str(value) fits into column of 'width'.""" value = str(value) if len(value) > width: - value = value[:width-len(pad)] + pad + value = value[: width - len(pad)] + pad return value if limit_width: # check if column widths need to be truncated