Fix formatting of size of downloads with Python 3.
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Wed, 23 Sep 2009 14:04:48 +0000 (14:04 -0000)
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Wed, 23 Sep 2009 14:04:48 +0000 (14:04 -0000)
svn path=/main/trunk/; revision=14394

pym/_emerge/format_size.py

index ff1aeb23f889ec348faea099bb800cd8b19c7384..b0d39db3347760bf541334c7029d0bccde270c4d 100644 (file)
@@ -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