Submitter | phabricator |
---|---|
Date | Oct. 8, 2019, 6:19 p.m. |
Message ID | <4541907d61aa6c11225211df52c356b7@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/42113/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/lsprof.py b/mercurial/lsprof.py --- a/mercurial/lsprof.py +++ b/mercurial/lsprof.py @@ -143,16 +143,3 @@ res = res.encode('latin-1') return res - - -if __name__ == '__main__': - import os - - sys.argv = sys.argv[1:] - if not sys.argv: - print(b"usage: lsprof.py <script> <arguments...>", file=sys.stderr) - sys.exit(2) - sys.path.insert(0, os.path.abspath(os.path.dirname(sys.argv[0]))) - stats = profile(execfile, sys.argv[0], globals(), locals()) - stats.sort() - stats.pprint()