From 4b1f09672d2b245188cb0a0bb8c2c2ee99610411 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Wed, 23 Sep 2009 14:04:48 +0000 Subject: Fix formatting of size of downloads with Python 3. svn path=/main/trunk/; revision=14394 --- pym/_emerge/format_size.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym') 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 -- cgit v1.2.3-1-g7c22