~marienz/twisted-x11/trunk

Viewing all changes in revision 183.

  • Committer: Marien Zwart
  • Date: 2009-04-16 16:52:58 UTC
  • Revision ID: marienz@localhost-20090416165258-2g3tmsep0g0a7grp
Use a contextmanager for the formatter to ensure it gets flushed.

This replaces the __del__ hack. Apart from not abusing __del__ the
advantage is this gives no useless warning if we bail with an exception.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: