[MERGE] Fix for walkdirs in missing dir with Py2.4 @ win32
Alexander Belchenko
bialix at ukr.net
Tue Apr 17 18:34:58 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Aaron Bentley пишет:
> 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
On Linux using of WindowsError will raise NameError,
because it undefined on non-win32.
[µ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGJQVCzYr338mxwCURArawAKCStNI/Pg3XJxRmtISsUyUxwKVgDACfeXa5
gHrEGXcOiaYAa2sdemMZ9PE=
=dbIS
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list