/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-02-14 03:16:54 UTC
  • mfrom: (7479.2.3 no-more-python2)
  • Revision ID: breezy.the.bot@gmail.com-20200214031654-bp1xtv2jr9nmhto3
Drop python2 support.

Merged from https://code.launchpad.net/~jelmer/brz/no-more-python2/+merge/378694

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: ")