/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/version.py

  • Committer: Jelmer Vernooij
  • Date: 2020-02-07 02:14:30 UTC
  • mto: This revision was merged to the branch mainline in revision 7492.
  • Revision ID: jelmer@jelmer.uk-20200207021430-m49iq3x4x8xlib6x
Drop python2 support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    osutils,
31
31
    trace,
32
32
    )
33
 
from .sixish import text_type
34
33
 
35
34
 
36
35
def show_version(show_config=True, show_copyright=True, to_file=None):
71
70
    to_file.write("  Python standard library:" + ' ')
72
71
    to_file.write(os.path.dirname(os.__file__) + '\n')
73
72
    platform_str = platform.platform(aliased=1)
74
 
    if not isinstance(platform_str, text_type):
 
73
    if not isinstance(platform_str, str):
75
74
        platform_str = platform_str.decode('utf-8')
76
75
    to_file.write("  Platform: %s\n" % platform_str)
77
76
    to_file.write("  breezy: ")
84
83
    if show_config:
85
84
        config_dir = osutils.normpath(
86
85
            bedding.config_dir())  # use native slashes
87
 
        if not isinstance(config_dir, text_type):
 
86
        if not isinstance(config_dir, str):
88
87
            config_dir = config_dir.decode(osutils.get_user_encoding())
89
88
        to_file.write("  Breezy configuration: %s\n" % (config_dir,))
90
89
        to_file.write("  Breezy log file: ")