Essentially, we just need a try/except IOError (OSError?) that traps ENOTSUP, as this is meant to be just advisory anyway. (We already just skip the operation if the file handle doesn't support it.)
Essentially, we just need a try/except IOError (OSError?) that traps ENOTSUP, as this is meant to be just advisory anyway. (We already just skip the operation if the file handle doesn't support it.)