~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Martin Pool
  • Date: 2009-08-10 08:46:57 UTC
  • mto: This revision was merged to the branch mainline in revision 4614.
  • Revision ID: mbp@sourcefrog.net-20090810084657-gbgzat5o93ntm3yz
Show better platform description in bug tracebacks

Show diffs side-by-side

added added

removed removed

Lines of Context:
478
478
 
479
479
def report_bug(exc_info, err_file):
480
480
    """Report an exception that probably indicates a bug in bzr"""
 
481
    import platform
481
482
    print_exception(exc_info, err_file)
482
483
    err_file.write('\n')
483
 
    err_file.write('bzr %s on python %s (%s)\n' % \
 
484
    err_file.write('bzr %s on python %s %s\n' % \
484
485
                       (bzrlib.__version__,
485
486
                        bzrlib._format_version_tuple(sys.version_info),
486
 
                        sys.platform))
 
487
                        platform.platform()))
487
488
    err_file.write('arguments: %r\n' % sys.argv)
488
489
    err_file.write(
489
490
        'encoding: %r, fsenc: %r, lang: %r\n' % (