~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/local.py

  • Committer: v.ladeuil+lp at free
  • Date: 2007-05-18 18:20:31 UTC
  • mto: (2485.8.44 bzr.connection.sharing)
  • mto: This revision was merged to the branch mainline in revision 2646.
  • Revision ID: v.ladeuil+lp@free.fr-20070518182031-gbg2cgidv5l20x9p
Takes Robert comments into account.

* bzrlib/transport/ftp.py:
(FtpTransport.__init__): Write a better explanation.

* bzrlib/tests/test_init.py:
(InstrumentedTransport): Just make hooks a class attribute.
(InstrumentedTransport._get_FTP): Run hook directly in the for
loop.
(TransportHooks.run_hook, TransportHooks.uninstall_hook): Not
needed. The hooks should be cleaned up by the test itself.
(TestInit.setUp.cleanup): Resset to default hooks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    symbol_versioning,
36
36
    )
37
37
from bzrlib.trace import mutter
38
 
from bzrlib.transport import LateReadError
39
38
""")
40
39
 
41
40
from bzrlib.transport import Transport, Server
142
141
            path = self._abspath(relpath)
143
142
            return open(path, 'rb')
144
143
        except (IOError, OSError),e:
145
 
            if e.errno == errno.EISDIR:
146
 
                return LateReadError(relpath)
147
144
            self._translate_error(e, path)
148
145
 
149
146
    def put_file(self, relpath, f, mode=None):
393
390
        except (IOError, OSError),e:
394
391
            self._translate_error(e, path)
395
392
 
396
 
    def external_url(self):
397
 
        """See bzrlib.transport.Transport.external_url."""
398
 
        # File URL's are externally usable.
399
 
        return self.base
400
 
 
401
393
    def copy_to(self, relpaths, other, mode=None, pb=None):
402
394
        """Copy a set of entries from self into another Transport.
403
395