Skip to content

Commit

Permalink
Fix removesuffix problem
Browse files Browse the repository at this point in the history
  • Loading branch information
norby4ever committed Nov 28, 2024
1 parent 30fa34b commit f8b4213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnfdragora/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ def _createCBItem(self, checked, pkg_name, pkg_summary, pkg_version, pkg_release
sizePadded = pkg_sizeM
# strip trailing K
if sizePadded.endswith('K'):
sizePadded = sizePadded.removesuffix('K')
sizePadded = sizePadded[:-1]
else:
logger.warning('while building sizePadded, no trailing K in %s , why? proceeding anyways', pkg_sizeM)
(sizeInt, decMark, decimals) = sizePadded.partition('.')
Expand Down

0 comments on commit f8b4213

Please sign in to comment.