[issue1545] shutil fails when copying to NTFS in Linux

Raghuram Devarakonda report at bugs.python.org
Mon Dec 3 23:25:22 CET 2007


Raghuram Devarakonda added the comment:

> try:
>   ....
> except os.error, err:
>   if WindowsError is not None or not isinstance(err, WindowsError):
>     raise   # Pretend we didn't catch it
>   pass   # Ignore it

All the double negations are hurting when I try to understand above
conditions. How about (in addition to the WindowsError name check):

if WindowsError and isinstance(err, WindowsError):
    pass # ignore

raise

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1545>
__________________________________


More information about the Python-bugs-list mailing list