diff --git a/mercurial/lsprof.py b/mercurial/lsprof.py --- a/mercurial/lsprof.py +++ b/mercurial/lsprof.py @@ -143,16 +143,3 @@ def label(code): 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