1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-10 23:40:58 +00:00

core: fix style

This commit is contained in:
Tomas Susanka 2019-08-23 12:35:17 +02:00
parent e1f0c238cf
commit 566753e551

View File

@ -80,7 +80,11 @@ def format_amount(amount: int, decimals: int) -> str:
else:
sign = ""
d = pow(10, decimals)
s = ("%s%d.%0*d" % (sign, amount // d, decimals, amount % d)).rstrip("0").rstrip(".")
s = (
("%s%d.%0*d" % (sign, amount // d, decimals, amount % d))
.rstrip("0")
.rstrip(".")
)
return s