~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/version.py

  • Committer: Patch Queue Manager
  • Date: 2016-02-01 19:13:13 UTC
  • mfrom: (6614.2.2 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20160201191313-wdfvmfff1djde6oq
(vila) Release 2.7.0 (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Report on version of bzrlib"""
18
18
 
 
19
from __future__ import absolute_import
 
20
 
19
21
import os
 
22
import platform
20
23
import sys
21
24
 
22
25
import bzrlib
30
33
 
31
34
 
32
35
def show_version(show_config=True, show_copyright=True, to_file=None):
33
 
    import platform
34
 
 
35
36
    if to_file is None:
36
37
        to_file = sys.stdout
37
38
    to_file.write("Bazaar (bzr) %s\n" % bzrlib.__version__)
64
65
 
65
66
    to_file.write("  Python standard library:" + ' ')
66
67
    to_file.write(os.path.dirname(os.__file__) + '\n')
67
 
    to_file.write("  Platform: %s\n" % platform.platform(aliased=1))
 
68
    to_file.write("  Platform: %s\n"
 
69
                  % platform.platform(aliased=1).decode('utf-8'))
68
70
    to_file.write("  bzrlib: ")
69
71
    if len(bzrlib.__path__) > 1:
70
72
        # print repr, which is a good enough way of making it clear it's