~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/stub_sftp.py

  • Committer: Martin Pool
  • Date: 2006-06-20 05:32:16 UTC
  • mfrom: (1797 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1798.
  • Revision ID: mbp@sourcefrog.net-20060620053216-817857d7ca3e9d1f
[merge] bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
            fstr = 'rb'
144
144
        try:
145
145
            f = os.fdopen(fd, fstr)
146
 
        except OSError, e:
 
146
        except (IOError, OSError), e:
147
147
            return SFTPServer.convert_errno(e.errno)
148
148
        fobj = StubSFTPHandle()
149
149
        fobj.filename = path