mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
Standardize string formatting to use .format instead of concat
This commit is contained in:
parent
a3a59af3f8
commit
2ad9f2e35f
18 changed files with 259 additions and 239 deletions
|
@ -31,7 +31,7 @@ def format_speed(size):
|
|||
Format bytes per second speed into IEC prefixes, B/s, KiB/s, MiB/s ...
|
||||
"""
|
||||
(size, unit) = format_size(size)
|
||||
return size, unit + '/s'
|
||||
return size, '{unit}/s'.format(unit=unit)
|
||||
|
||||
|
||||
def format_timedelta(delta):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue