From 62e26f12732f7c4d7bb86945c7623fceefc097c6 Mon Sep 17 00:00:00 2001 From: aarif Date: Thu, 26 Sep 2019 19:06:12 +0500 Subject: [PATCH] python 3 fixes --- openedx/core/djangoapps/profile_images/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/profile_images/images.py b/openedx/core/djangoapps/profile_images/images.py index aefb28e8b7..e107e02590 100644 --- a/openedx/core/djangoapps/profile_images/images.py +++ b/openedx/core/djangoapps/profile_images/images.py @@ -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])