gimp-help-2 r2556 - in branches/xml2po-support: . tools
- From: romanofski svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp-help-2 r2556 - in branches/xml2po-support: . tools
- Date: Mon, 8 Sep 2008 18:05:22 +0000 (UTC)
Author: romanofski
Date: Mon Sep 8 18:05:21 2008
New Revision: 2556
URL: http://svn.gnome.org/viewvc/gimp-help-2?rev=2556&view=rev
Log:
2008-09-08 Roman Joost <romanofski gimp org>
* tools/split-xml-multi-lang.py: reverted my last change,
because I was fooled by my package managemant of my
distribution.
Modified:
branches/xml2po-support/ChangeLog
branches/xml2po-support/tools/split-xml-multi-lang.py
Modified: branches/xml2po-support/tools/split-xml-multi-lang.py
==============================================================================
--- branches/xml2po-support/tools/split-xml-multi-lang.py (original)
+++ branches/xml2po-support/tools/split-xml-multi-lang.py Mon Sep 8 18:05:21 2008
@@ -30,11 +30,7 @@
import re
import xml.dom.minidom
import logging
-try:
- import profile
- WITH_PROFILING = True
-except ImportError:
- WITH_PROFILING = False
+import profile
# Configure logging package
logging.basicConfig(level=logging.INFO, format="%(levelname)-8s %(message)s")
@@ -498,12 +494,8 @@
# Main program start
if __name__ == '__main__':
- if "--profile" in sys.argv and WITH_PROFILING == True:
+ if "--profile" in sys.argv:
profile.run("main()")
- elif "--profile" in sys.argv and WITH_PROFILING == False:
- print ("Can't find profiling support."
- " Install profiling support for python.")
- sys.exit(2)
else:
main()
# pydoc doesn't like the following "raise" statement
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]