mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 05:26:37 +00:00
Simply add the string we want
I must have been fixated on using `replace()`. After already splitting the string, using the part we don't want seems silly.
This commit is contained in:
parent
78e422f563
commit
fefe1fbc4d
@ -10,5 +10,5 @@ def bytesformat(input):
|
||||
output = filesizeformat(input)
|
||||
if not (output and output.endswith('B', -1)):
|
||||
return output
|
||||
return output[: -1 ] + output[ -1 :].replace('B', 'iB', 1)
|
||||
return output[: -1 ] + 'iB'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user