~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/atomicfile.py

  • Committer: Martin Pool
  • Date: 2005-05-10 08:56:28 UTC
  • Revision ID: mbp@sourcefrog.net-20050510085628-d07e2b6a3f535286
- atomicfile temporaries should end in .tmp to make it
  easier to clean them up

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
            raise ValueError("invalid AtomicFile mode %r" % mode)
33
33
 
34
34
        import os, socket
35
 
        self.tmpfilename = '%s.tmp.%d.%s' % (filename, os.getpid(),
 
35
        self.tmpfilename = '%s.%d.%s.tmp' % (filename, os.getpid(),
36
36
                                             socket.gethostname())
37
37
        self.realfilename = filename
38
38