summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-08-14 09:37:44 +0000
committerZac Medico <zmedico@gentoo.org>2008-08-14 09:37:44 +0000
commit733ea688c0ae837c209b7983c193e490012d3307 (patch)
treeecc76403c3158b187c08866b5f5270f37f656661
parent6714a0468cf3186531e7d305e540041cc7a6baab (diff)
downloadportage-733ea688c0ae837c209b7983c193e490012d3307.tar.gz
portage-733ea688c0ae837c209b7983c193e490012d3307.tar.bz2
portage-733ea688c0ae837c209b7983c193e490012d3307.zip
The fpformat module is deprecated and will be removed in py3k.
The % string interpolation operator should be used instead. Thanks to Ali Polatel <hawking@g.o> for this patch. svn path=/main/trunk/; revision=11406
-rw-r--r--pym/_emerge/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 7a5c74342..9bc06db22 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -24,7 +24,6 @@ import array
from collections import deque
import fcntl
import formatter
-import fpformat
import logging
import select
import shlex
@@ -8674,7 +8673,7 @@ class JobStatusDisplay(object):
avg = os.getloadavg()
except OSError, e:
return str(e)
- return ", ".join(fpformat.fix(x, digits) for x in avg)
+ return ", ".join(("%%.%df" % digits ) % x for x in avg)
def display(self):
"""