Skip to content
Snippets Groups Projects
Unverified Commit 473398d4 authored by Aarif's avatar Aarif Committed by GitHub
Browse files

Merge pull request #21792 from edx/BOM-743

BOM-743
parents b4ca12af 62e26f12
No related branches found
No related tags found
No related merge requests found
......@@ -243,6 +243,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])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment