Skip to content

Commit

Permalink
STY #639
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed May 23, 2023
1 parent 791fbb6 commit 6564db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apstools/utils/device_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6564db6

Please sign in to comment.