# HG changeset patch # User Gregory Szorc # Date 2019-10-07 14:28:32 # Node ID dc6d866b8cb8b4ea166148c542cf37828d56933d # Parent 5e9188f054d989874c2bf5961c57b99adf14ccb8 lsprof: remove __main__ functionality I'm pretty sure nobody uses this. I noticed it because Python 3 linting is complaining about execfile. Differential Revision: https://phab.mercurial-scm.org/D7017 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