~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-08-15 09:15:03 UTC
  • mfrom: (4595.7.4 409137-lsb-release)
  • Revision ID: pqm@pqm.ubuntu.com-20090815091503-qwbm6glvv31rnujw
(mbp) show platform in selftest, version and backtrace

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(aliased=1)))
487
488
    err_file.write('arguments: %r\n' % sys.argv)
488
489
    err_file.write(
489
490
        'encoding: %r, fsenc: %r, lang: %r\n' % (