/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/__init__.py

  • Committer: Aaron Bentley
  • Date: 2008-02-24 16:42:13 UTC
  • mfrom: (3234 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3235.
  • Revision ID: aaron@aaronbentley.com-20080224164213-eza1lzru5bwuwmmj
Merge with bzr.dev

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):