~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/crash.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-18 10:55:12 UTC
  • mfrom: (5887.1.1 trivial_close_earlier)
  • Revision ID: pqm@pqm.ubuntu.com-20110518105512-8rhaqw4g6a8pnjuo
(jameinel) Close file objects a bit earlier in _seek_and_read. Helps PyPy's
 lazy collector. (Martin [gz])

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
    # this function is based on apport_package_hook.py, but omitting some of the
121
121
    # Ubuntu-specific policy about what to report and when
122
122
 
123
 
    # This import is apparently not used, but we're doing it so that if the
124
 
    # import fails, the exception will be caught at a higher level and we'll
125
 
    # report the error by other means.
 
123
    # if the import fails, the exception will be caught at a higher level and
 
124
    # we'll report the error by other means
126
125
    import apport
127
126
 
128
127
    crash_filename = _write_apport_report_to_file(exc_info)