]> git.lyx.org Git - lyx.git/blobdiff - lib/lyx2lyx/profiling.py
One more unused variable
[lyx.git] / lib / lyx2lyx / profiling.py
index b97bc22d1b5cf9bdc163099a3d2fb984ca040467..bd885bb965a49381f78d8b1dba262c61ee526830 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/python3
 # -*- coding: utf-8 -*-
 # Copyright (C) 2004 José Matos <jamatos@lyx.org>
 #
@@ -14,7 +14,7 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
 # We need all this because lyx2lyx does not have the .py termination
 import imp
@@ -35,11 +35,10 @@ Example:
         ./profiling.py -ou.lyx ../doc/UserGuide.lyx
 """
 
-def main(argv):
+def main():
     # This will only work with python >= 2.2, the version where this module was added
     prof = hotshot.Profile("lyx2lyx.prof") # Use temporary file, here?
-    benchtime = prof.runcall(
-        lambda : lyx2lyx.main(argv))
+    benchtime = prof.runcall(lyx2lyx.main)
     prof.close()
 
     # After the tests, show the profile analysis.
@@ -52,4 +51,4 @@ def main(argv):
 
 
 if __name__ == "__main__":
-    main(sys.argv)
+    main()