'Perform any platform-specific postprocessing of `tempname`
This is where Mac header rewrites should be done; other platforms don\'t
have anything special they should do.
Resource providers should call this method ONLY after successfully
extracting a compressed resource.  They must NOT call it on resources
that are already in the filesystem.
`tempname` is the current (temporary) name of the file, and `filename`
is the name it will be renamed to by the caller after this routine
returns.'

def postprocess(self, tempname, filename):

    if (os.name == 'posix'):
        mode = ((os.stat(tempname).st_mode | 365) & 4095)
        os.chmod(tempname, mode)
