Zero functional change, this is pure refactoring and preparation for using the mtime= parameter which the gzip.compress() shortcut does not make available. Signed-off-by: Marc Herbert <marc.herbert@intel.com>