mercurial/statprof.py
changeset 49806 9eb69fa5a783
parent 49578 aab3d4c05720
child 50305 972f3e5c94b8
--- 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="],
         )