mercurial/profiling.py
changeset 43117 8ff1ecfadcd1
parent 43089 c59eb1560c44
child 43506 9f70512ae2cf
equal deleted inserted replaced
43116:defabf63e969 43117:8ff1ecfadcd1
    41     field = ui.config(b'profiling', b'sort')
    41     field = ui.config(b'profiling', b'sort')
    42     limit = ui.configint(b'profiling', b'limit')
    42     limit = ui.configint(b'profiling', b'limit')
    43     climit = ui.configint(b'profiling', b'nested')
    43     climit = ui.configint(b'profiling', b'nested')
    44 
    44 
    45     if format not in [b'text', b'kcachegrind']:
    45     if format not in [b'text', b'kcachegrind']:
    46         ui.warn(
    46         ui.warn(_(b"unrecognized profiling format '%s' - Ignored\n") % format)
    47             _(b"unrecognized profiling format '%s'" b" - Ignored\n") % format
       
    48         )
       
    49         format = b'text'
    47         format = b'text'
    50 
    48 
    51     try:
    49     try:
    52         from . import lsprof
    50         from . import lsprof
    53     except ImportError:
    51     except ImportError: