[Python-Dev] Hotshot

Nick Coghlan ncoghlan at iinet.net.au
Sat Jan 24 18:13:39 EST 2004


Skip Montanaro wrote:
> Any objection if I check in the attached modification of your script as
> .../Tools/scripts/hotshotmain.py?  It doesn't seem to work with the -p
> flag.  Unfortunately, I have to take my son to hockey practice, so I can't
> debug that problem right now.

 From modified script:
=======================
     profile = PROFILE
     for opt, arg in opts:
         if opt in ("-h", "--help"):
             usage()
             return 0
         if opt in ("-p", "--profile"):
             profile = arg
             return 0
========================

Should that second 'return 0' be there?

Regards,
Nick.

-- 
Nick Coghlan               |     Brisbane, Australia
Email: ncoghlan at email.com  | Mobile: +61 409 573 268




More information about the Python-Dev mailing list