> + mt = pycompat.sysbytes( > + mimetypes.guess_type(pycompat.fsdecode(f))[0] > + or 'application/octet-stream') The default value has to be either `r''` prefixed or moved out of the `sysbytes()`.