/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 bzrlib/transport/local.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-16 19:15:19 UTC
  • mto: This revision was merged to the branch mainline in revision 1937.
  • Revision ID: john@arbash-meinel.com-20060816191519-7d0519e2499ef34c
reverting changes to errors.py and local transport.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
This is a fairly thin wrapper on regular file IO.
20
20
"""
21
21
 
22
 
import errno
23
22
import os
24
23
import shutil
25
24
import sys
27
26
import tempfile
28
27
 
29
28
from bzrlib import (
30
 
    errors,
31
29
    osutils,
32
30
    urlutils,
33
31
    )
126
124
 
127
125
        :param relpath: The relative path to the file
128
126
        """
129
 
        path = self._abspath(relpath)
130
127
        try:
 
128
            path = self._abspath(relpath)
131
129
            return open(path, 'rb')
132
130
        except (IOError, OSError),e:
133
 
            # Fast path this *one* case, because it happens *a lot*
134
 
            if e.errno == errno.ENOENT:
135
 
                raise errors.NoSuchFile(path, e)
136
131
            self._translate_error(e, path)
137
132
 
138
133
    def put(self, relpath, f, mode=None):