~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/version.py

  • Committer: Matt Nordhoff
  • Date: 2009-06-23 05:12:07 UTC
  • mto: This revision was merged to the branch mainline in revision 4474.
  • Revision ID: mnordhoff@mattnordhoff.com-20090623051207-fksdtbzkwtnrw9dd
Update _add_text docstrings that still referred to add_text.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2004, 2005, 2006, 2007, 2009 Canonical Ltd
 
1
# Copyright (C) 2004, 2005, 2006, 2007 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
31
31
 
32
32
 
33
33
def show_version(show_config=True, show_copyright=True, to_file=None):
34
 
    import platform
35
 
 
36
34
    if to_file is None:
37
35
        to_file = sys.stdout
38
36
    to_file.write("Bazaar (bzr) %s\n" % bzrlib.__version__)
64
62
 
65
63
    to_file.write("  Python standard library:" + ' ')
66
64
    to_file.write(os.path.dirname(os.__file__) + '\n')
67
 
    to_file.write("  Platform: %s\n" % platform.platform(aliased=1))
68
65
    to_file.write("  bzrlib: ")
69
66
    if len(bzrlib.__path__) > 1:
70
67
        # print repr, which is a good enough way of making it clear it's