python 3 fixes

This commit is contained in:
aarif
2019-09-26 19:06:12 +05:00
parent 0125bd40c8
commit 62e26f1273

View File

@@ -242,6 +242,6 @@ def _user_friendly_size(size):
units = [_('bytes'), _('KB'), _('MB')]
i = 0
while size >= 1024 and i < len(units):
size /= 1024
size //= 1024
i += 1
return u'{} {}'.format(size, units[i])