~toddy/bzr/bzr.i18n

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: Tobias Toedter
  • Date: 2008-02-10 08:01:48 UTC
  • mfrom: (2438.1.783 +trunk)
  • Revision ID: t.toedter@gmx.net-20080210080148-bg5rh61oq2zk2xw3
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
343
343
        This handles things like ENOENT, ENOTDIR, EEXIST, and EACCESS
344
344
        """
345
345
        if getattr(e, 'errno', None) is not None:
346
 
            if e.errno in (errno.ENOENT, errno.ENOTDIR):
 
346
            if e.errno in (errno.ENOENT, errno.ENOTDIR, errno.EINVAL):
347
347
                raise errors.NoSuchFile(path, extra=e)
348
348
            # I would rather use errno.EFOO, but there doesn't seem to be
349
349
            # any matching for 267
1262
1262
class _SharedConnection(object):
1263
1263
    """A connection shared between several transports."""
1264
1264
 
1265
 
    def __init__(self, connection=None, credentials=None):
 
1265
    def __init__(self, connection=None, credentials=None, base=None):
1266
1266
        """Constructor.
1267
1267
 
1268
1268
        :param connection: An opaque object specific to each transport.
1272
1272
        """
1273
1273
        self.connection = connection
1274
1274
        self.credentials = credentials
 
1275
        self.base = base
1275
1276
 
1276
1277
 
1277
1278
class ConnectedTransport(Transport):