]> git.lyx.org Git - lyx.git/blobdiff - lib/lyx2lyx/profiling.py
Make sure we extend with a list.
[lyx.git] / lib / lyx2lyx / profiling.py
index d249675a146b047626ec23e481fba46ce536f264..fbdb10a2c7775cdefd41936ffb563e9b553950e8 100755 (executable)
@@ -1,6 +1,6 @@
 #! /usr/bin/env python
-# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2004 José Matos <jamatos@lyx.org>
+# -*- coding: utf-8 -*-
+# Copyright (C) 2004 José Matos <jamatos@lyx.org>
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -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()