# HG changeset patch # User Matt Harbison # Date 1671074842 18000 # Node ID 9eb69fa5a7834975cb3fa9c8c748578c0cff7f66 # Parent a06a503e3cf85445745de661b761cd22fe24d8f9 statprof: don't pass str `sys.argv` to a function expecting bytes Found by typing the global functions in mercurial.pycompat. diff -r a06a503e3cf8 -r 9eb69fa5a783 mercurial/statprof.py --- a/mercurial/statprof.py Wed Dec 14 22:24:54 2022 -0500 +++ b/mercurial/statprof.py Wed Dec 14 22:27:22 2022 -0500 @@ -1049,7 +1049,7 @@ # process options try: opts, args = pycompat.getoptb( - sys.argv[optstart:], + pycompat.sysargv[optstart:], b"hl:f:o:p:", [b"help", b"limit=", b"file=", b"output-file=", b"script-path="], )