Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sugar/util.py')
-rw-r--r--src/sugar/util.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sugar/util.py b/src/sugar/util.py
index 3625f21..e1bcf88 100644
--- a/src/sugar/util.py
+++ b/src/sugar/util.py
@@ -346,9 +346,9 @@ def format_size(size):
return _('Empty')
elif size < 1024:
return _('%d B') % size
- elif size < 1024**2:
+ elif size < 1024 ** 2:
return _('%d KB') % (size / 1024)
- elif size < 1024**3:
- return _('%d MB') % (size / 1024**2)
+ elif size < 1024 ** 3:
+ return _('%d MB') % (size / 1024 ** 2)
else:
- return _('%d GB') % (size / 1024**3)
+ return _('%d GB') % (size / 1024 ** 3)