summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-23 14:04:48 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-23 14:04:48 +0000
commit4b1f09672d2b245188cb0a0bb8c2c2ee99610411 (patch)
tree5a9125b4fc0274d9ec6f1bb0b0b8c332fa4b7ea4
parentd62e6fcf8f8c420c00864e97f9bfd73dda7ee3e7 (diff)
downloadportage-4b1f09672d2b245188cb0a0bb8c2c2ee99610411.tar.gz
portage-4b1f09672d2b245188cb0a0bb8c2c2ee99610411.tar.bz2
portage-4b1f09672d2b245188cb0a0bb8c2c2ee99610411.zip
Fix formatting of size of downloads with Python 3.
svn path=/main/trunk/; revision=14394
-rw-r--r--pym/_emerge/format_size.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/format_size.py b/pym/_emerge/format_size.py
index ff1aeb23f..b0d39db33 100644
--- a/pym/_emerge/format_size.py
+++ b/pym/_emerge/format_size.py
@@ -15,7 +15,7 @@ def format_size(mysize):
# Always round up to the next kB so that it doesn't show 0 kB when
# some small file still needs to be fetched.
mysize += 1024 - mysize % 1024
- mystr=str(mysize/1024)
+ mystr=str(mysize//1024)
mycount=len(mystr)
while (mycount > 3):
mycount-=3