Hide
Siafoo is here to make coding less frustrating and to save you time. Join Siafoo Now or Learn More

Automatic replacement of logging statements with pass (and vice versa) - Recent Activity Subscribe

Show: Turn New Off Turn Edits Off Turn Ratings Off Turn Comments Off
06 February 2010 1
Edit David Underhill edited the Python snippet “Automatic replacement of logging statements with pass (and vice versa)
6 February 2010 at 09:13 PM
" fixed bug in my reST syntax; added a link to an article explaining the motivation of this snippet " diff
David Underhill posted the Python snippet “Automatic replacement of logging statements with pass (and vice versa)
6 February 2010 at 08:48 PM
This script parses a Python file and comments out logging statements, replacing them with a pass statement (or vice versa). The purpose of commenting out these statements is to improve performance.... more