Issue #7092: Fix the DeprecationWarnings emitted by the standard library
when using the -3 flag. Patch by Florent Xicluna.
diff --git a/Lib/pstats.py b/Lib/pstats.py
index a6844fb..6beb0b3 100644
--- a/Lib/pstats.py
+++ b/Lib/pstats.py
@@ -442,12 +442,12 @@
if nc == 0:
print >> self.stream, ' '*8,
else:
- print >> self.stream, f8(tt/nc),
+ print >> self.stream, f8(float(tt)/nc),
print >> self.stream, f8(ct),
if cc == 0:
print >> self.stream, ' '*8,
else:
- print >> self.stream, f8(ct/cc),
+ print >> self.stream, f8(float(ct)/cc),
print >> self.stream, func_std_string(func)
class TupleComp: