[Zope-Checkins] SVN: Zope/trunk/src/Zope2/utilities/requestprofiler.py provide main()
Andreas Jung
andreas at andreas-jung.com
Thu Feb 19 11:45:43 EST 2009
Log message for revision 96768:
provide main()
Changed:
U Zope/trunk/src/Zope2/utilities/requestprofiler.py
-=-
Modified: Zope/trunk/src/Zope2/utilities/requestprofiler.py
===================================================================
--- Zope/trunk/src/Zope2/utilities/requestprofiler.py 2009-02-19 16:42:01 UTC (rev 96767)
+++ Zope/trunk/src/Zope2/utilities/requestprofiler.py 2009-02-19 16:45:43 UTC (rev 96768)
@@ -701,7 +701,7 @@
return usage
-if __name__ == '__main__':
+def main():
if len(sys.argv) == 1:
print usage()
sys.exit(0)
@@ -838,3 +838,6 @@
traceback.print_exc()
print usage()
sys.exit(0)
+
+if __name__ == '__main__':
+ main()
More information about the Zope-Checkins
mailing list