~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/crash.py

  • Committer: Martin Pool
  • Date: 2009-08-20 05:47:35 UTC
  • mto: This revision was merged to the branch mainline in revision 4632.
  • Revision ID: mbp@sourcefrog.net-20090820054735-nk16pzqlu08u228f
Fix call to platform() when apport not present

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
# or see http://code.launchpad.net/~mbp/bzr/bzr-fail
23
23
 
24
24
import os
 
25
import platform
25
26
import pprint
26
27
import sys
27
28
import time
61
62
    err_file.write('bzr %s on python %s (%s)\n' % \
62
63
                       (bzrlib.__version__,
63
64
                        bzrlib._format_version_tuple(sys.version_info),
64
 
                        sys.platform(aliased=1)))
 
65
                        platform.platform(aliased=1)))
65
66
    err_file.write('arguments: %r\n' % sys.argv)
66
67
    err_file.write(
67
68
        'encoding: %r, fsenc: %r, lang: %r\n' % (