# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 2018-10-20 11:15:48
# Node ID fc4c598dd4a0443977aff8c1b5d77c6377bd30cc
# Parent  a9e303dcd1e1f22e9930fe745aee21674cf209c0

statprof: fix indent level of fp.write() (issue6004)

It was changed at 9d3034348c4f by mistake.

diff --git a/mercurial/statprof.py b/mercurial/statprof.py
--- a/mercurial/statprof.py
+++ b/mercurial/statprof.py
@@ -704,7 +704,7 @@ def display_hotpath(data, fp, limit=0.05
             # Make frames that didn't actually perform work dark grey
             elif node.count - childrensamples == 0:
                 finalstring = '\033[90m' + finalstring + '\033[0m'
-                fp.write(finalstring + b'\n')
+            fp.write(finalstring + b'\n')
 
         newdepth = depth
         if len(visiblechildren) > 1 or multiple_siblings: