~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: mbp at sourcefrog
  • Date: 2005-03-27 10:06:16 UTC
  • Revision ID: mbp@sourcefrog.net-20050327100616-82b4a819c21ae124
avoid slow platform module functions

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
    t.write('  by %s on %s\n' % (bzrlib.osutils.username(), socket.getfqdn()))
100
100
    t.write('  arguments: %r\n' % argv)
101
101
 
102
 
    import platform
103
 
    t.write('  platform: %s\n' % platform.platform())
104
 
    t.write('  python: %s\n' % platform.python_version())
 
102
    # This causes a vfork; I don't care enough about it.
 
103
    t.write('  platform: %s\n' % sys.platform)
 
104
    t.write('  python: %s\n' % (sys.version_info,))
105
105
 
106
106
    import atexit
107
107
    atexit.register(_close_trace)