The % string interpolation operator should be used instead.
Thanks to Ali Polatel <hawking@g.o> for this patch.
svn path=/main/trunk/; revision=11406
from collections import deque
import fcntl
import formatter
-import fpformat
import logging
import select
import shlex
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):
"""