Re: [Python-Dev] Possible issue in warnings.py

2008-09-21 Thread Benjamin Peterson
On Sun, Sep 21, 2008 at 4:26 PM, Scott David Daniels <[EMAIL PROTECTED]> wrote: > Does someone who knows the design of warnings.py a bit better than I > know whether it would be an improvement to switch from: >> try: >> file.write(formatwarning(message, category, filename, >>

[Python-Dev] Possible issue in warnings.py

2008-09-21 Thread Scott David Daniels
Does someone who knows the design of warnings.py a bit better than I know whether it would be an improvement to switch from: > try: > file.write(formatwarning(message, category, filename, > lineno, line)) > except IOError: > pass # the file