~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/atomicfile.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-09-03 20:58:40 UTC
  • mfrom: (3626.1.6 unicode_hostname)
  • Revision ID: pqm@pqm.ubuntu.com-20080903205840-mteswj8dfvld7vo3
(Mark Hammond) Fix bug #256550 by using a Unicode api on Windows for
        the host name.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
        self._fd = None
54
54
 
55
55
        if _hostname is None:
56
 
            _hostname = socket.gethostname()
 
56
            _hostname = osutils.get_host_name()
57
57
 
58
58
        self.tmpfilename = '%s.%d.%s.tmp' % (filename, _pid, _hostname)
59
59