def GzipDecode(s):
 with closing(StringIO(s)) as sio:
  with gzip.GzipFile(fileobj=sio, mode='rb') as gzfile:
   return gzfile.read()

def GzipDecode ( s ) : with closing ( StringIO ( s ) ) as sio : with gzip . GzipFile ( fileobj = sio , mode = 'rb' ) as gzfile : return gzfile . read ( )
decompresses s and returns the result as a byte string .