Mercurial > public > mercurial-scm > hg-stable
diff mercurial/statprof.py @ 49901:9eb69fa5a783
statprof: don't pass str `sys.argv` to a function expecting bytes
Found by typing the global functions in mercurial.pycompat.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 14 Dec 2022 22:27:22 -0500 |
parents | aab3d4c05720 |
children | 972f3e5c94b8 |
line wrap: on
line diff
--- 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="], )