From: Arfrever Frehtes Taifersar Arahesis Date: Fri, 25 Sep 2009 07:08:24 +0000 (-0000) Subject: Fix formatting of sizes with Python 3. X-Git-Tag: v2.2_rc42~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=28f70d0feddd9ff95c30af10694694324a6230ce;p=portage.git Fix formatting of sizes with Python 3. svn path=/main/trunk/; revision=14429 --- diff --git a/bin/repoman b/bin/repoman index faed9a2ba..8fd7a60cb 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1127,7 +1127,7 @@ for x in scanlist: # current policy is no files over 20k, this is the check. elif mystat.st_size > 20480: stats["file.size"] += 1 - fails["file.size"].append("("+ str(mystat.st_size/1024) + "K) "+x+"/files/"+y) + fails["file.size"].append("("+ str(mystat.st_size//1024) + "K) "+x+"/files/"+y) m = disallowed_filename_chars_re.search( os.path.basename(y.rstrip(os.sep))) diff --git a/pym/_emerge/search.py b/pym/_emerge/search.py index 355307972..f0611f28a 100644 --- a/pym/_emerge/search.py +++ b/pym/_emerge/search.py @@ -341,7 +341,7 @@ class search(object): break if myebuild and file_size_str is None: - mystr = str(mysum[0] / 1024) + mystr = str(mysum[0] // 1024) mycount = len(mystr) while (mycount > 3): mycount -= 3