From: Arfrever Frehtes Taifersar Arahesis Date: Wed, 23 Sep 2009 14:04:48 +0000 (-0000) Subject: Fix formatting of size of downloads with Python 3. X-Git-Tag: v2.2_rc42~30 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4b1f09672d2b245188cb0a0bb8c2c2ee99610411;p=portage.git Fix formatting of size of downloads with Python 3. svn path=/main/trunk/; revision=14394 --- 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