1 |
Hi, |
2 |
The fpformat module is deprecated and will be removed in py3k. |
3 |
The % string interpolation operator should be used instead. |
4 |
Attached patch fixes this. |
5 |
|
6 |
--- |
7 |
pym/_emerge/__init__.py | 3 +-- |
8 |
1 files changed, 1 insertions(+), 2 deletions(-) |
9 |
|
10 |
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py |
11 |
index 7a5c743..9bc06db 100644 |
12 |
--- a/pym/_emerge/__init__.py |
13 |
+++ b/pym/_emerge/__init__.py |
14 |
@@ -24,7 +24,6 @@ import array |
15 |
from collections import deque |
16 |
import fcntl |
17 |
import formatter |
18 |
-import fpformat |
19 |
import logging |
20 |
import select |
21 |
import shlex |
22 |
@@ -8674,7 +8673,7 @@ class JobStatusDisplay(object): |
23 |
avg = os.getloadavg() |
24 |
except OSError, e: |
25 |
return str(e) |
26 |
- return ", ".join(fpformat.fix(x, digits) for x in avg) |
27 |
+ return ", ".join(("%%.%df" % digits ) % x for x in avg) |
28 |
|
29 |
def display(self): |
30 |
""" |
31 |
-- |
32 |
Regards, |
33 |
Ali Polatel |