From e0251da989710f0ad5ab16fbc1ad24b0686fa2e8 Mon Sep 17 00:00:00 2001 From: amitvadhel Date: Sun, 29 Sep 2019 16:39:22 +0300 Subject: [PATCH] Fix for Python3 division --- 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 bfce3a026f..327309766d 100644 --- a/openedx/core/djangoapps/profile_images/images.py +++ b/openedx/core/djangoapps/profile_images/images.py @@ -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])