# HG changeset patch # User Gregory Szorc # Date 1539358270 -7200 # Node ID b8f6a99ad89b2775639c84987f799ef263fb91bb # Parent 4b7eb862692eb29b7997780ff1e78877e0cd839c py3: convert sorting field to sysstr This is used as part of an attribute name check and needs to be native str. Differential Revision: https://phab.mercurial-scm.org/D5008 diff -r 4b7eb862692e -r b8f6a99ad89b mercurial/profiling.py --- a/mercurial/profiling.py Fri Oct 12 17:25:02 2018 +0200 +++ b/mercurial/profiling.py Fri Oct 12 17:31:10 2018 +0200 @@ -61,7 +61,7 @@ else: # format == 'text' stats = lsprof.Stats(p.getstats()) - stats.sort(field) + stats.sort(pycompat.sysstr(field)) stats.pprint(limit=limit, file=fp, climit=climit) @contextlib.contextmanager