--- a/mercurial/profiling.py Tue Jun 20 14:00:41 2017 -0700
+++ b/mercurial/profiling.py Wed Jun 21 10:46:18 2017 +0200
@@ -126,6 +126,8 @@
kwargs = {}
def fraction(s):
+ if isinstance(s, (float, int)):
+ return float(s)
if s.endswith('%'):
v = float(s[:-1]) / 100
else: