~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.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:
211
211
 
212
212
        This handles things like ENOENT, ENOTDIR, EEXIST, and EACCESS
213
213
        """
214
 
        if getattr(e, 'errno', None) != None:
 
214
        if getattr(e, 'errno', None) is not None:
215
215
            if e.errno in (errno.ENOENT, errno.ENOTDIR):
216
216
                raise errors.NoSuchFile(path, extra=e)
217
217
            # I would rather use errno.EFOO, but there doesn't seem to be
882
882
 
883
883
    def get_transport_test_permutations(self, module):
884
884
        """Get the permutations module wants to have tested."""
885
 
        if getattr(module, 'get_test_permutations', None) == None:
 
885
        if getattr(module, 'get_test_permutations', None) is None:
886
886
            warning("transport module %s doesn't provide get_test_permutations()"
887
887
                    % module.__name__)
888
888
            return []