~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/sftp.py

  • Committer: Robey Pointer
  • Date: 2006-09-08 18:46:29 UTC
  • mto: This revision was merged to the branch mainline in revision 1996.
  • Revision ID: robey@lag.net-20060908184629-e3fc4c61ca21508c
pychecker is on crack; go back to using 'is None'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
456
456
        """
457
457
        # paramiko seems to generate detailless errors.
458
458
        self._translate_error(e, path, raise_generic=False)
459
 
        if getattr(e, 'args', None) != None:
 
459
        if getattr(e, 'args', None) is not None:
460
460
            if (e.args == ('No such file or directory',) or
461
461
                e.args == ('No such file',)):
462
462
                raise NoSuchFile(path, str(e) + more_info)
466
466
            if (e.args == ('Failure',)):
467
467
                raise failure_exc(path, str(e) + more_info)
468
468
            mutter('Raising exception with args %s', e.args)
469
 
        if getattr(e, 'errno', None) != None:
 
469
        if getattr(e, 'errno', None) is not None:
470
470
            mutter('Raising exception with errno %s', e.errno)
471
471
        raise e
472
472