[MERGE] Fix for walkdirs in missing dir with Py2.4 @ win32

Aaron Bentley aaron.bentley at utoronto.ca
Tue Apr 17 16:19:27 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Arbash Meinel wrote:
> John Arbash Meinel has voted +1.
> Status is now: Approved
> Comment:
> Seems reasonable. I wonder if we want to add a standard place for any of
> these windows errors that we are defining.

What drives me batty is that we can't refer to the WindowsError class on
every platform.  Sure, not every platform will raise it, but it would be
much cleaner to do

        except WindowsError, e:
            if e.errno != ERROR_PATH_NOT_FOUND:
                raise
        except OSError, e:
            if e.errno != errno.ENOENT:
                raise


Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGJOV/0F+nu1YWqI0RAkz4AKCJPDpZh6ytfE1pTpAeqSLiNQnAdQCffvqL
Z4YLTYVmUkIc59qc/4vXj1c=
=k9/g
-----END PGP SIGNATURE-----



More information about the bazaar mailing list