From 733ea688c0ae837c209b7983c193e490012d3307 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 14 Aug 2008 09:37:44 +0000 Subject: [PATCH] The fpformat module is deprecated and will be removed in py3k. The % string interpolation operator should be used instead. Thanks to Ali Polatel for this patch. svn path=/main/trunk/; revision=11406 --- pym/_emerge/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 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): """ -- 2.26.2