~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: John Arbash Meinel
  • Date: 2008-09-03 19:59:48 UTC
  • mto: This revision was merged to the branch mainline in revision 3686.
  • Revision ID: john@arbash-meinel.com-20080903195948-24iha6kjan1b0pc9
Document the difference in get_host_name, per Robert's request.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1450
1450
 
1451
1451
 
1452
1452
def get_host_name():
1453
 
    """Return the current unicode host name"""
 
1453
    """Return the current unicode host name.
 
1454
 
 
1455
    This is meant to be used in place of socket.gethostname() because that
 
1456
    behaves inconsistently on different platforms.
 
1457
    """
1454
1458
    if sys.platform == "win32":
1455
1459
        import win32utils
1456
1460
        return win32utils.get_host_name()